Allow displaying only unread notifications (#7803)

* Allow displaying only unread notifications

Add `FeatureFlags.ShowAllActivityInRoomList` (enabled by default, to match the current behavior) that, when disabled, will display the unread messages of a room instead of unread notifications if no unread notifications are found

* Restore UI changes to the badges, `RoomSummaryRow` and `HorizontalFloatingToolbar`

* Fix `NavigationBarIcon`: use `BadgeBox` component.

* Adjust padding in `RoomSummaryRow` to 6.dp

* Fix other indicators not displaying a dot anymore

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
This commit is contained in:
Jorge Martin Espinosa
2026-10-01 19:46:01 +02:00
committed by GitHub
parent a3ff7e1486
commit 2dd0a47eb4
197 changed files with 825 additions and 414 deletions
@@ -169,4 +169,13 @@ enum class FeatureFlags(
defaultValue = { false },
isFinished = false,
),
ShowAllActivityInRoomList(
key = "feature.show_all_activity_in_room_list",
title = "Show all activity in room list",
description = "Show all activity indicators in the room list, using unread messages instead of notifications.",
defaultValue = { true },
// To hide it from the developer options, since it's displayed in the notification settings instead
isFinished = true,
isInLabs = false,
)
}