Skip to content

Commit

Permalink
Merge pull request #870 from AppFlowy-IO/private-view-in-trash
Browse files Browse the repository at this point in the history
fix: filter out private view in trash for folder struct
  • Loading branch information
khorshuheng authored Oct 11, 2024
2 parents 14cfaa0 + 3d45118 commit 2f47d07
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/biz/collab/folder_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
"",
Expand Down

0 comments on commit 2f47d07

Please sign in to comment.