From 22daf1a6a84f12c9b9f0004d52a803c231589a7c Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Fri, 3 Feb 2023 17:45:28 -0500 Subject: [PATCH] Removes Channels from the Messages Notification Dot. --- .../java/com/vitorpamplona/amethyst/ui/navigation/Routes.kt | 2 +- 1 file changed, 1 insertion(+), 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 183c341dd..92850707d 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 @@ -138,7 +138,7 @@ private fun messagesHasNewItems(cache: NotificationCache): Boolean { return NostrChatroomListDataSource.feed().take(100).filter { // only for known sources val me = NostrChatroomListDataSource.account.userProfile() - it.channel != null || me.hasSentMessagesTo(it.author) + it.channel == null && me.hasSentMessagesTo(it.author) && it.author != me }.filter { val lastTime = if (it.channel != null) { cache.load("Channel/${it.channel!!.idHex}", context)