mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Define the notification sound name in AppSettings. (#5106)
This commit is contained in:
@@ -15,6 +15,7 @@ import Version
|
||||
|
||||
struct NotificationContentBuilder {
|
||||
let messageEventStringBuilder: RoomMessageEventStringBuilder
|
||||
let notificationSoundName: UNNotificationSoundName
|
||||
let userSession: NSEUserSessionProtocol
|
||||
|
||||
/// Process the given notification item proxy
|
||||
@@ -48,7 +49,7 @@ struct NotificationContentBuilder {
|
||||
notificationContent.threadIdentifier = threadIdentifier.replacingOccurrences(of: "@", with: "")
|
||||
|
||||
MXLog.info("isNoisy: \(notificationItem.isNoisy)")
|
||||
notificationContent.sound = notificationItem.isNoisy ? UNNotificationSound(named: UNNotificationSoundName(rawValue: "message.caf")) : nil
|
||||
notificationContent.sound = notificationItem.isNoisy ? .init(named: notificationSoundName) : nil
|
||||
|
||||
switch notificationItem.event {
|
||||
case .none:
|
||||
|
||||
Reference in New Issue
Block a user