mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Autoplay the next voice message if it is the next timeline item. (#6089)
This commit is contained in:
@@ -93,6 +93,16 @@ nonisolated extension URL {
|
||||
return url
|
||||
}
|
||||
|
||||
/// The directory holding the sounds that iOS uses for its own interface.
|
||||
static let systemSoundsDirectory: URL = {
|
||||
let systemRoot = if let simulatorRoot = ProcessInfo.processInfo.environment["SIMULATOR_ROOT"] {
|
||||
URL(filePath: simulatorRoot)
|
||||
} else {
|
||||
URL(filePath: "/")
|
||||
}
|
||||
return systemRoot.appending(components: "System", "Library", "Audio", "UISounds", directoryHint: .isDirectory)
|
||||
}()
|
||||
|
||||
var globalProxy: String? {
|
||||
guard let proxySettings = CFNetworkCopySystemProxySettings()?.takeRetainedValue() else {
|
||||
MXLog.error("Failed retrieving proxy settings")
|
||||
|
||||
Reference in New Issue
Block a user