Pinning items Feature Flag (#3063)

This commit is contained in:
Mauro
2024-07-18 18:28:30 +02:00
committed by GitHub
parent 7fbdc2c20f
commit d437e1f3ed
24 changed files with 66 additions and 21 deletions
@@ -50,6 +50,7 @@ protocol DeveloperOptionsProtocol: AnyObject {
var hideUnreadMessagesBadge: Bool { get set }
var elementCallBaseURLOverride: URL? { get set }
var fuzzyRoomListSearchEnabled: Bool { get set }
var pinningEnabled: Bool { get set }
}
extension AppSettings: DeveloperOptionsProtocol { }
@@ -34,6 +34,12 @@ struct DeveloperOptionsScreen: View {
}
}
Section("Message Pinning") {
Toggle(isOn: $context.pinningEnabled) {
Text("Enable message pinning")
}
}
Section("Room List") {
Toggle(isOn: $context.hideUnreadMessagesBadge) {
Text("Hide grey dots")