mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 16:24:11 +00:00
4841a3bdaf
* chore: Add dependency `SwiftFlow` for use in avatar header badges. Signed-off-by: Skye Elliot <actuallyori@gmail.com> * feat: Display history sharing pill in room details. Signed-off-by: Skye Elliot <actuallyori@gmail.com> * tests: Add tests for history sharing room details pill. Signed-off-by: Skye Elliot <actuallyori@gmail.com> * tests: Update screenshots for RoomDetailsScreen preview tests. * fix: Use Localazy translations for room details badges * fix: Address review comments * fix: Remove line limit from room details badges --------- Signed-off-by: Skye Elliot <actuallyori@gmail.com>
21 lines
921 B
Swift
21 lines
921 B
Swift
//
|
|
// Copyright 2026 Element Creations Ltd.
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial.
|
|
// Please see LICENSE files in the repository root for full details.
|
|
//
|
|
|
|
/// Enumeration of the two possible cases in which history sharing under MSC4268 is enabled. These
|
|
/// variants implicitly assume that the feature flag, `enableKeyShareOnInvite`, is set.
|
|
enum RoomHistorySharingState: Equatable {
|
|
/// The feature flag is set, and the room history visibility is either `invited` or `joined`. New
|
|
/// members of the room cannot read the room history.
|
|
case hidden
|
|
/// The feature flag is set, and the room history visibility is set to `shared`. New members of the
|
|
/// room can read the room history.
|
|
case shared
|
|
/// The feature flag is set, and the room history visibility is set to `world_readable`. Anyone
|
|
/// can read the room history.
|
|
case worldReadable
|
|
}
|