Просмотр исходного кода

Hide badge commit 3/3. I don't think the last conditional is needed...

Jon Mårtensson 3 лет назад
Родитель
Сommit
f3604859ae

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

@@ -196,7 +196,7 @@ final class BaseUserNotificationsManager: NSObject, UserNotificationsManager, In
                 // Make check double to remove the nil in case not needed anymore...
                 if lastGlucose.dateString.addingTimeInterval(19.minutes.timeInterval) < Date() {
                     self.addAppBadge(glucose: nil)
-                } else { self.addAppBadge(glucose: lastGlucose.glucose) }
+                }
             }
         }