Fix local notification badge number

This commit is contained in:
ariskotsomitopoulos 2021-12-17 01:23:09 +02:00
parent a60f6e996a
commit 5723465106
2 changed files with 3 additions and 1 deletions

View file

@ -154,7 +154,7 @@ project(":diff-match-patch") {
// Global configurations across all modules
ext {
isThreadingEnabled = false
isThreadingEnabled = true
}
//project(":matrix-sdk-android") {

View file

@ -113,9 +113,11 @@ internal fun TimelineEventEntity.Companion.findAllLocalThreadNotificationsForRoo
TimelineEventEntity
.whereRoomId(realm, roomId = roomId)
.equalTo(TimelineEventEntityFields.ROOT.IS_ROOT_THREAD, true)
.beginGroup()
.equalTo(TimelineEventEntityFields.ROOT.THREAD_NOTIFICATION_STATE_STR, ThreadNotificationState.NEW_MESSAGE.name)
.or()
.equalTo(TimelineEventEntityFields.ROOT.THREAD_NOTIFICATION_STATE_STR, ThreadNotificationState.NEW_HIGHLIGHTED_MESSAGE.name)
.endGroup()
/**
* Returns whether or not the given user is participating in a current thread