Fixes Notification for messaging with yourself.

This commit is contained in:
Vitor Pamplona
2023-02-18 19:04:56 -05:00
parent 34bdc2b103
commit 0d1bf72708
@@ -124,7 +124,7 @@ private fun messagesHasNewItems(account: Account, cache: NotificationCache, cont
ChatroomListKnownFeedFilter.account = account
return ChatroomListKnownFeedFilter.feed().any {
if (it.channel == null) {
if (it.channel == null && it.author != account.userProfile()) {
val lastTime = cache.load("Room/${it.author?.pubkeyHex}", context)
(it.event?.createdAt ?: 0) > lastTime