Fix local notification badge number
This commit is contained in:
parent
a60f6e996a
commit
5723465106
|
@ -154,7 +154,7 @@ project(":diff-match-patch") {
|
|||
|
||||
// Global configurations across all modules
|
||||
ext {
|
||||
isThreadingEnabled = false
|
||||
isThreadingEnabled = true
|
||||
}
|
||||
|
||||
//project(":matrix-sdk-android") {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue