mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 08:15:24 +00:00
Add a feature flag for User Status.
This commit is contained in:
@@ -417,6 +417,9 @@ final nonisolated class AppSettings: @unchecked Sendable {
|
||||
@UserPreference(defaultValue: AppBuildType.current != .release, volatile: true)
|
||||
var clientPausingAndResumingEnabled: Bool
|
||||
|
||||
@UserPreference(defaultValue: false)
|
||||
var userStatusEnabled: Bool
|
||||
|
||||
@UserPreference(defaultValue: AppBuildType.current != .release)
|
||||
var developerOptionsEnabled: Bool
|
||||
|
||||
|
||||
+1
@@ -72,6 +72,7 @@ protocol DeveloperOptionsProtocol: AnyObject {
|
||||
var jumpToReadMarkerEnabled: Bool { get set }
|
||||
|
||||
var linkNewDeviceEnabled: Bool { get set }
|
||||
var userStatusEnabled: Bool { get set }
|
||||
|
||||
var roomThreadListEnabled: Bool { get set }
|
||||
|
||||
|
||||
+4
@@ -54,6 +54,10 @@ struct DeveloperOptionsScreen: View {
|
||||
Text("Moves search to a separate tab")
|
||||
}
|
||||
|
||||
Toggle(isOn: $context.userStatusEnabled) {
|
||||
Text("User status")
|
||||
}
|
||||
|
||||
context.viewState.appHooks
|
||||
.developerOptionsScreenHook
|
||||
.generalSectionRows()
|
||||
|
||||
Reference in New Issue
Block a user