Explorar o código

Repeating notifications are always scheduled and not triggered

Sebastián Katzer %!s(int64=10) %!d(string=hai) anos
pai
achega
19ea10da08
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/windows/LocalNotificationUtil.js

+ 3 - 0
src/windows/LocalNotificationUtil.js

@@ -255,6 +255,9 @@ exports.isToastTriggered = function (toast) {
         notification = this.getAll(id)[0];
         fireDate = new Date((notification.at) * 1000);
 
+    if (this.isRepeating(notification))
+        return false;
+
     return fireDate <= new Date();
 };