Bug 1861744 - Don't display pending to delete bookmarks when refresh

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.
fenix/124.1.0
DreVla 4 months ago committed by mergify[bot]
parent 5d45dacf7b
commit 9aaeacc16f

@ -281,6 +281,7 @@ class BookmarkFragment : LibraryPageFragment<BookmarkNode>(), UserInteractionHan
context?.let {
requireContext().bookmarkStorage
.getTree(guid, recursive)
?.minus(pendingBookmarksToDelete)
?.let { desktopFolders.withOptionalDesktopFolders(it) }
}
}

Loading…
Cancel
Save