|
|
@ -124,7 +124,7 @@ extension EventCenter { |
|
|
|
let relevantEvents = filteredEvents[autoupdatingCalendar.startOfDay(for: Date())] ?? [] |
|
|
|
let relevantEvents = filteredEvents[autoupdatingCalendar.startOfDay(for: Date())] ?? [] |
|
|
|
|
|
|
|
|
|
|
|
let filteredEvents = relevantEvents.filter { |
|
|
|
let filteredEvents = relevantEvents.filter { |
|
|
|
$0.event.isAllDay == false && $0.event.endDate.timeIntervalSinceNow > 0 && $0.event.startDate.timeIntervalSinceNow > -300 |
|
|
|
$0.event.isAllDay == false && $0.event.endDate.timeIntervalSinceNow > 0 && $0.event.startDate.timeIntervalSinceNow > -300 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if filteredEvents.count == 1 { return filteredEvents.first } |
|
|
|
if filteredEvents.count == 1 { return filteredEvents.first } |
|
|
|