diff --git a/changelog.d/5260.misc b/changelog.d/5260.misc new file mode 100644 index 0000000000..36812e2c83 --- /dev/null +++ b/changelog.d/5260.misc @@ -0,0 +1 @@ +Number of unread messages on space badge now include number of unread DMs \ No newline at end of file diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/summary/RoomSummaryUpdater.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/summary/RoomSummaryUpdater.kt index 1c1d59fb3d..449fe60dca 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/summary/RoomSummaryUpdater.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/summary/RoomSummaryUpdater.kt @@ -411,8 +411,6 @@ internal class RoomSummaryUpdater @Inject constructor( realm.where(RoomSummaryEntity::class.java) .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) .contains(RoomSummaryEntityFields.FLATTEN_PARENT_IDS, space.roomId) .findAll().forEach { highlightCount += it.highlightCount