Removes Channels from the Messages Notification Dot.

This commit is contained in:
Vitor Pamplona 2023-02-03 17:45:28 -05:00
parent 1a3b92a727
commit 22daf1a6a8

View File

@ -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)