mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Move any visible account settings into AccountSettings. (#6308)
* Remove the now unused setting to disable in-app notifications. * Move visible account settings into AccountSettings. Have ignored enableNotifications for now as that will require reworking the NotificationManager. * Allow different sounds to be selected for each account. * Move defaultNotificationTone into AccountSettings.
This commit is contained in:
@@ -103,6 +103,16 @@ nonisolated extension URL {
|
||||
return systemRoot.appending(components: "System", "Library", "Audio", "UISounds", directoryHint: .isDirectory)
|
||||
}()
|
||||
|
||||
/// The directory holding notification tones imported by the user, inside the Library/Sounds directory searched by the system.
|
||||
static var customTonesDirectory: URL {
|
||||
libraryDirectory.appending(components: "Sounds", "Custom", directoryHint: .isDirectory)
|
||||
}
|
||||
|
||||
/// The directory holding copies of selected system tones, inside the Library/Sounds directory searched by the system.
|
||||
static var systemTonesDirectory: URL {
|
||||
libraryDirectory.appending(components: "Sounds", "System", directoryHint: .isDirectory)
|
||||
}
|
||||
|
||||
var globalProxy: String? {
|
||||
guard let proxySettings = CFNetworkCopySystemProxySettings()?.takeRetainedValue() else {
|
||||
MXLog.error("Failed retrieving proxy settings")
|
||||
|
||||
Reference in New Issue
Block a user