fix: filter out private view in trash for folder struct

This commit is contained in:
khorshuheng 2024-10-10 10:52:34 +08:00
parent 98347b81ea
commit 3d45118da4
1 changed files with 3 additions and 4 deletions

View File

@ -16,15 +16,14 @@ pub fn collab_folder_to_folder_view(
for private_section in folder.get_all_private_sections() {
unviewable.insert(private_section.id);
}
for trash_view in folder.get_all_trash_sections() {
unviewable.insert(trash_view.id);
}
let mut private_view_ids = HashSet::new();
for private_section in folder.get_my_private_sections() {
unviewable.remove(&private_section.id);
private_view_ids.insert(private_section.id);
}
for trash_view in folder.get_all_trash_sections() {
unviewable.insert(trash_view.id);
}
to_folder_view(
"",