mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +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:
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// Copyright 2026 Element Creations Ltd.
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial.
|
||||
// Please see LICENSE files in the repository root for full details.
|
||||
//
|
||||
|
||||
import UserNotifications
|
||||
|
||||
nonisolated extension AccountSettings {
|
||||
/// The sound to attach to outgoing notifications, falling back to the default tone if no tone has been selected.
|
||||
var notificationSound: UNNotificationSound {
|
||||
(selectedNotificationTone ?? defaultNotificationTone.publisher.value).notificationSound
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user