Add history sharing badges to room details (#6132)

* feat: Add history sharing badges to room details view

* tests: Add snapshots for history sharing room details badges

* fix: Disable soft-wrapping in badges, use FlowRow

* tests: Add unit test for `RoomDetailsState` and history sharing badges.

* tests: Add `MatrixBadgeAtomNeutralWrappingPreview` to exceptions

* chore: Re-order `MatrixBadgeAtom` previews

* fix: Add `Immutable` annotation to `RoomHistoryVisibility`.

* fix: Correct translation for shared badge
This commit is contained in:
Skye Elliot 2026-02-06 19:03:52 +00:00 committed by GitHub
parent db310e42d4
commit 028ec221b0
20 changed files with 156 additions and 3 deletions

View file

@ -8,6 +8,9 @@
package io.element.android.libraries.matrix.api.room.history
import androidx.compose.runtime.Immutable
@Immutable
sealed interface RoomHistoryVisibility {
/**
* Previous events are accessible to newly joined members from the point