* Enable key-share-on-invite irrespective of feature flag * Remove feature-flag dep: warning on starting chat with new people * Remove feature-flag dep: invite from room member details * Remove feature-flag dep: warning on new users in invite screen * Remove feature-flag dep: from room details screen * Remove feature-flag dep: starting chat from user profile screen * Remove feature-flag dep: timeline info on forwarded keys * Remove feature-flag dep: RoomScreenModel * Remove `enableKeyShareOnInvite` from AppSettings * Remove `enableKeyShareOnInvite` feature flag * Remove outdated comments * Update preview test room snapshots as their header now includes the history sharing icon
20 lines
827 B
Swift
20 lines
827 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.
|
|
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
|
|
}
|