mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Multi account feature flag (#6261)
* Add a multi-account feature flag The flag lives in Developer options. Switching it on arms the upcoming one-time multi-account announcement, whose seen state defaults to true so fresh installs never see it. * Add an Add account row to Settings behind the multi-account flag The row sits in its own section under the user status, as in the designs. Tapping it is routed up to the settings flow, which ignores it until the add account flow exists. * Remove the Developer options view model tests The Developer options screen is excluded from coverage, so these tests don't add value. * Apply review suggestions to the multi-account flag - Order the multi-account requirements in DeveloperOptionsProtocol to match the screen's sections. - Drop the redundant "Experimental" from the toggle's subtitle.
This commit is contained in:
+5
@@ -6,6 +6,7 @@
|
||||
// Please see LICENSE files in the repository root for full details.
|
||||
//
|
||||
|
||||
import Combine
|
||||
import Foundation
|
||||
|
||||
enum DeveloperOptionsScreenViewModelAction {
|
||||
@@ -72,6 +73,10 @@ protocol DeveloperOptionsProtocol: AnyObject {
|
||||
|
||||
var globalSearchEnabled: Bool { get set }
|
||||
|
||||
var multiAccountEnabled: Bool { get set }
|
||||
var multiAccountEnabledPublisher: AnyPublisher<Bool, Never> { get }
|
||||
var hasSeenMultiAccountAnnouncement: Bool { get set }
|
||||
|
||||
var nativeCallEnabled: Bool { get set }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user