mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-04-08 20:08:06 +02:00
Removes Channels from the Messages Notification Dot.
This commit is contained in:
parent
1a3b92a727
commit
22daf1a6a8
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user