Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Commit

Permalink
Bug 1861744 - Don't display pending to delete bookmarks when refresh
Browse files Browse the repository at this point in the history
When deleting bookmarks, we do not instantly remove them due to
having the possibility of undoing the deletion. Because of this,
when the bookmarks are pending to delete, they can still be displayed
when pulling down to refresh and then acted on. This patch aims to
fix this issue by subtracting the pending to delete bookmarks
when they are refreshed by pulling down.
  • Loading branch information
DreVla authored and mergify[bot] committed Jan 25, 2024
1 parent 3acc394 commit b98eea7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ class BookmarkFragment : LibraryPageFragment<BookmarkNode>(), UserInteractionHan
context?.let {
requireContext().bookmarkStorage
.getTree(guid, recursive)
?.minus(pendingBookmarksToDelete)
?.let { desktopFolders.withOptionalDesktopFolders(it) }
}
}
Expand Down

0 comments on commit b98eea7

Please sign in to comment.