Merge the room thread list flag into the threads flag

This commit is contained in:
Stefan Ceriu
2026-09-02 11:28:36 +03:00
parent 2ae8b9bf75
commit 491f7c538e
4 changed files with 1 additions and 10 deletions
@@ -420,9 +420,6 @@ final nonisolated class AppSettings: @unchecked Sendable {
@UserPreference(defaultValue: false)
var threadsEnabled: Bool
@UserPreference(defaultValue: false)
var roomThreadListEnabled: Bool
@UserPreference(defaultValue: ProcessInfo().isiOSAppOnMac)
var globalSearchEnabled: Bool
@@ -166,7 +166,7 @@ class RoomScreenViewModel: RoomScreenViewModelType, RoomScreenViewModelProtocol
// MARK: - Private
private func setupSubscriptions(ongoingCallRoomIDPublisher: CurrentValuePublisher<String?, Never>) {
appSettings.roomThreadListEnabledPublisher
appSettings.threadsEnabledPublisher
.weakAssign(to: \.state.roomThreadListEnabled, on: self)
.store(in: &cancellables)
@@ -71,8 +71,6 @@ protocol DeveloperOptionsProtocol: AnyObject {
var linkNewDeviceEnabled: Bool { get set }
var roomThreadListEnabled: Bool { get set }
var globalSearchEnabled: Bool { get set }
}
@@ -86,10 +86,6 @@ struct DeveloperOptionsScreen: View {
}
Section("Room") {
Toggle(isOn: $context.roomThreadListEnabled) {
Text("Room thread list")
}
Toggle(isOn: $context.linkPreviewsEnabled) {
Text("Link previews")
Text("Follows the timeline media visibility settings.")