From 7212d566c932b4f53fc86f6269536517458bd042 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Wed, 22 Nov 2023 09:10:15 -0500 Subject: [PATCH] Fixes the blue notification dot appearing when the user receives a notification from a blocked account before downloading the blocklist --- .../java/com/vitorpamplona/amethyst/ui/navigation/Routes.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/vitorpamplona/amethyst/ui/navigation/Routes.kt b/app/src/main/java/com/vitorpamplona/amethyst/ui/navigation/Routes.kt index a7520cea9..ae33c158e 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/ui/navigation/Routes.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/ui/navigation/Routes.kt @@ -193,7 +193,8 @@ open class LatestItem { fun updateNewestItem(newNotes: Set, account: Account, filter: AdditiveFeedFilter): Note? { val newestItem = newestItemPerAccount[account.userProfile().pubkeyHex] - if (newestItem == null) { + // Block list got updated + if (newestItem == null || !account.isAcceptable(newestItem)) { newestItemPerAccount = newestItemPerAccount + Pair( account.userProfile().pubkeyHex, filterMore(filter.feed(), account).firstOrNull { it.createdAt() != null }