Also count DMs in space unread counts

Change-Id: I494e6d6a8f5522b666dc9e573b19e3fc4737bc76
This commit is contained in:
SpiritCroc 2021-05-28 10:48:34 +02:00
parent 4a11802b65
commit d13891d556
1 changed files with 1 additions and 1 deletions

View File

@ -380,7 +380,7 @@ internal class RoomSummaryUpdater @Inject constructor(
.process(RoomSummaryEntityFields.MEMBERSHIP_STR, listOf(Membership.JOIN))
.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)
//.equalTo(RoomSummaryEntityFields.IS_DIRECT, false)
.contains(RoomSummaryEntityFields.FLATTEN_PARENT_IDS, space.roomId)
.findAll().forEach {
highlightCount += it.highlightCount