Display an icon in the room header for rooms with shared history (#5016)

* feat: Display an icon in the room header for rooms with shared history

* fix: Apply suggestions from code review

- Simplifies `isRoomHistoryShared` expressions using type inferrence.
- Adds failure messages to unit test.

Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>

* fix: Remove extension method in favour of field on configuration.

* fix: Distinguish between `shared` and `worldReadable` icons.

* refactor: Use `RoomHistorySharingState` enum with extension methods

---------

Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
This commit is contained in:
Skye Elliot
2026-01-30 13:11:10 +00:00
committed by GitHub
parent 26cb30c614
commit 955ec0c8a9
15 changed files with 180 additions and 11 deletions
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7e0e6a96f699edf80a25da1158581da37cfa3ee2e44a404c51a20a9305c77f77
size 101376
oid sha256:25d819f52ad5fb46aacca695198b7d2fa275a7b205c08bdebc8c1724cf6a2c4b
size 191605
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7e0e6a96f699edf80a25da1158581da37cfa3ee2e44a404c51a20a9305c77f77
size 101376
oid sha256:25d819f52ad5fb46aacca695198b7d2fa275a7b205c08bdebc8c1724cf6a2c4b
size 191605
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:37b7a926dcf3071ff7a5eed78141438240ebd99e2d4fb0b474156d0f261580d3
size 76207
oid sha256:ee0792530f8ff2020d174a79b0d6f2edd6ec3f970d01f71cc54292ad91b7fc4a
size 145478
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:37b7a926dcf3071ff7a5eed78141438240ebd99e2d4fb0b474156d0f261580d3
size 76207
oid sha256:ee0792530f8ff2020d174a79b0d6f2edd6ec3f970d01f71cc54292ad91b7fc4a
size 145478