From ae639b2474fcda6378ed41e00df2b95b5f079e15 Mon Sep 17 00:00:00 2001 From: ryanzhao Date: Fri, 26 Aug 2022 10:53:48 +1000 Subject: [PATCH] minor fix --- Session/Notifications/AppNotifications.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Session/Notifications/AppNotifications.swift b/Session/Notifications/AppNotifications.swift index 96c6bea16..357b39c4a 100644 --- a/Session/Notifications/AppNotifications.swift +++ b/Session/Notifications/AppNotifications.swift @@ -384,9 +384,12 @@ public class NotificationPresenter: NSObject, NotificationsProtocol { closedGroupName: nil, // Not supported openGroupName: nil // Not supported ) + + let fallbackSound: Preferences.Sound = db[.defaultNotificationSound] + .defaulting(to: Preferences.Sound.defaultNotificationSound) DispatchQueue.main.async { - let sound = self.requestSound(thread: thread) + let sound = self.requestSound(thread: thread, fallbackSound: fallbackSound) self.adaptee.notify( category: category,