Explorar o código

Fixed sound for carbsReq if disabled

Ivan Valkou %!s(int64=4) %!d(string=hai) anos
pai
achega
d04e3deb0e

+ 1 - 1
FreeAPS/Sources/Services/UserNotifiactions/UserNotificationsManager.swift

@@ -83,7 +83,7 @@ final class BaseUserNotificationsManager: NSObject, UserNotificationsManager, In
                 titles.append(NSLocalizedString("(Snoozed)", comment: "(Snoozed)"))
                 titles.append(NSLocalizedString("(Snoozed)", comment: "(Snoozed)"))
             } else {
             } else {
                 content.sound = .default
                 content.sound = .default
-                self.playSound()
+                self.playSoundIfNeeded()
             }
             }
 
 
             titles.append(String(format: NSLocalizedString("Carbs required: %d g", comment: "Carbs required"), carbs))
             titles.append(String(format: NSLocalizedString("Carbs required: %d g", comment: "Carbs required"), carbs))