mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-27 11:46:58 +02:00
Settings: Add show NSFW public rooms toggle.
This commit is contained in:
@@ -36,6 +36,7 @@ final class RiotSettings: NSObject {
|
||||
static let hideVerifyThisSessionAlert = "hideVerifyThisSessionAlert"
|
||||
static let hideReviewSessionsAlert = "hideReviewSessionsAlert"
|
||||
static let matrixApps = "matrixApps"
|
||||
static let showNSFWPublicRooms = "showNSFWPublicRooms"
|
||||
}
|
||||
|
||||
static let shared = RiotSettings()
|
||||
@@ -119,6 +120,15 @@ final class RiotSettings: NSObject {
|
||||
}
|
||||
}
|
||||
|
||||
/// Indicate to show Not Safe For Work public rooms.
|
||||
var showNSFWPublicRooms: Bool {
|
||||
get {
|
||||
return defaults.bool(forKey: UserDefaultsKeys.showNSFWPublicRooms)
|
||||
} set {
|
||||
defaults.set(newValue, forKey: UserDefaultsKeys.showNSFWPublicRooms)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: User interface
|
||||
|
||||
var userInterfaceTheme: String? {
|
||||
|
||||
Reference in New Issue
Block a user