Skip to content

Commit 2f3130e

Browse files
fix reversed notifications bug
1 parent 4488a01 commit 2f3130e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UCLA Radio/UCLA Radio/NotificationManager.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ class NotificationManager {
246246
let token = id.components(separatedBy: "-")
247247
if token.count == 2 {
248248
if let showID = Int(token[0]),
249-
let notificationOffset = Int(token[1]) {
250-
return (showID, notificationOffset)
249+
let absNotificationOffset = Int(token[1]) {
250+
return (showID, -1 * absNotificationOffset)
251251
}
252252
}
253253
return nil

0 commit comments

Comments
 (0)