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
|
// Global configurations across all modules
|
||||||
ext {
|
ext {
|
||||||
isThreadingEnabled = false
|
isThreadingEnabled = true
|
||||||
}
|
}
|
||||||
|
|
||||||
//project(":matrix-sdk-android") {
|
//project(":matrix-sdk-android") {
|
||||||
|
@ -113,9 +113,11 @@ internal fun TimelineEventEntity.Companion.findAllLocalThreadNotificationsForRoo
|
|||||||
TimelineEventEntity
|
TimelineEventEntity
|
||||||
.whereRoomId(realm, roomId = roomId)
|
.whereRoomId(realm, roomId = roomId)
|
||||||
.equalTo(TimelineEventEntityFields.ROOT.IS_ROOT_THREAD, true)
|
.equalTo(TimelineEventEntityFields.ROOT.IS_ROOT_THREAD, true)
|
||||||
|
.beginGroup()
|
||||||
.equalTo(TimelineEventEntityFields.ROOT.THREAD_NOTIFICATION_STATE_STR, ThreadNotificationState.NEW_MESSAGE.name)
|
.equalTo(TimelineEventEntityFields.ROOT.THREAD_NOTIFICATION_STATE_STR, ThreadNotificationState.NEW_MESSAGE.name)
|
||||||
.or()
|
.or()
|
||||||
.equalTo(TimelineEventEntityFields.ROOT.THREAD_NOTIFICATION_STATE_STR, ThreadNotificationState.NEW_HIGHLIGHTED_MESSAGE.name)
|
.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
|
* Returns whether or not the given user is participating in a current thread
|
||||||
|
Loading…
x
Reference in New Issue
Block a user