We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2b391f5 + 91a1c7f commit 1ce2edfCopy full SHA for 1ce2edf
LoopFollow/Alarm/AlarmManager.swift
@@ -43,6 +43,17 @@ class AlarmManager {
43
func checkAlarms(data: AlarmData) {
44
let now = Date()
45
var alarmTriggered = false
46
+
47
+ let config = Storage.shared.alarmConfiguration.value
48
49
+ // Honor the "Snooze All" setting. If active, stop any current alarm and exit.
50
+ if let snoozeUntil = config.snoozeUntil, snoozeUntil > now {
51
+ if Observable.shared.currentAlarm.value != nil {
52
+ stopAlarm()
53
+ }
54
+ return
55
56
57
let alarms = Storage.shared.alarms.value
58
59
let sorted = alarms.sorted(by: Alarm.byPriorityThenSpec)
0 commit comments