mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-02 20:26:47 +01:00
include dms number in space unread number badge
This commit is contained in:
parent
bcdf004082
commit
a3dcee55e4
1
changelog.d/5260.misc
Normal file
1
changelog.d/5260.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Number of unread messages on space badge now include number of unread DMs
|
@ -411,8 +411,6 @@ internal class RoomSummaryUpdater @Inject constructor(
|
|||||||
realm.where(RoomSummaryEntity::class.java)
|
realm.where(RoomSummaryEntity::class.java)
|
||||||
.process(RoomSummaryEntityFields.MEMBERSHIP_STR, listOf(Membership.JOIN))
|
.process(RoomSummaryEntityFields.MEMBERSHIP_STR, listOf(Membership.JOIN))
|
||||||
.notEqualTo(RoomSummaryEntityFields.ROOM_TYPE, RoomType.SPACE)
|
.notEqualTo(RoomSummaryEntityFields.ROOM_TYPE, RoomType.SPACE)
|
||||||
// also we do not count DM in here, because home space will already show them
|
|
||||||
.equalTo(RoomSummaryEntityFields.IS_DIRECT, false)
|
|
||||||
.contains(RoomSummaryEntityFields.FLATTEN_PARENT_IDS, space.roomId)
|
.contains(RoomSummaryEntityFields.FLATTEN_PARENT_IDS, space.roomId)
|
||||||
.findAll().forEach {
|
.findAll().forEach {
|
||||||
highlightCount += it.highlightCount
|
highlightCount += it.highlightCount
|
||||||
|
Loading…
x
Reference in New Issue
Block a user