Removes Channels from the Messages Notification Dot.
This commit is contained in:
@@ -138,7 +138,7 @@ private fun messagesHasNewItems(cache: NotificationCache): Boolean {
|
|||||||
return NostrChatroomListDataSource.feed().take(100).filter {
|
return NostrChatroomListDataSource.feed().take(100).filter {
|
||||||
// only for known sources
|
// only for known sources
|
||||||
val me = NostrChatroomListDataSource.account.userProfile()
|
val me = NostrChatroomListDataSource.account.userProfile()
|
||||||
it.channel != null || me.hasSentMessagesTo(it.author)
|
it.channel == null && me.hasSentMessagesTo(it.author) && it.author != me
|
||||||
}.filter {
|
}.filter {
|
||||||
val lastTime = if (it.channel != null) {
|
val lastTime = if (it.channel != null) {
|
||||||
cache.load("Channel/${it.channel!!.idHex}", context)
|
cache.load("Channel/${it.channel!!.idHex}", context)
|
||||||
|
|||||||
Reference in New Issue
Block a user