Fix the check whether the notification should be displayed
authorCyperghost <olaf_schmitz_1@t-online.de>
Mon, 28 Oct 2024 11:51:33 +0000 (12:51 +0100)
committerCyperghost <olaf_schmitz_1@t-online.de>
Mon, 28 Oct 2024 11:51:33 +0000 (12:51 +0100)
wcfsetup/install/files/service-worker/index.php

index b3232835b568370a09c8ed01212adff50efd429d..60fb5e0e48b25c2c1035d23731fc95636e7e1cbf 100644 (file)
@@ -20,7 +20,7 @@ self.addEventListener("push", (event) => {
        const payload = event.data.json();
 
        getLastNotificationTimestamp().then((lastNotificationTimestamp) => {
-               if (!lastNotificationTimestamp || payload.time < lastNotificationTimestamp) {
+               if (lastNotificationTimestamp && payload.time < lastNotificationTimestamp) {
                        return;
                }