Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 724480a3 authored by Moez Bhatti's avatar Moez Bhatti
Browse files

Exclude archived and blocked conversations when calculating unread count

parent e1da6cf5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -194,6 +194,8 @@ class MessageRepositoryImpl @Inject constructor(
    override fun getUnreadCount(): Long {
        return Realm.getDefaultInstance()
                .where(Conversation::class.java)
                .equalTo("archived", false)
                .equalTo("blocked", false)
                .equalTo("read", false)
                .count()
    }