Merge pull request #870 from AppFlowy-IO/private-view-in-trash

fix: filter out private view in trash for folder struct
This commit is contained in:
Khor Shu Heng 2024-10-11 09:54:39 +08:00 committed by GitHub
commit 2f47d07593
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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(
"",