Incorrect callback for notifications was used
authorAlexander Ebert <ebert@woltlab.com>
Sat, 16 Apr 2022 12:18:39 +0000 (14:18 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 16 Apr 2022 12:18:39 +0000 (14:18 +0200)
files/js/WoltLabSuite/Core/Conversation/Ui/User/Menu/Data/Conversation.js
ts/WoltLabSuite/Core/Conversation/Ui/User/Menu/Data/Conversation.ts

index e40f0eef58b9e5833f8bf2f38abc1e0188472a09..c1c002572097a8e3fb4a7d11b12fa8ab08dd04b0 100644 (file)
@@ -26,10 +26,6 @@ define(["require", "exports", "tslib", "WoltLabSuite/Core/Ajax", "WoltLabSuite/C
                     this.counter = counter;
                 }
             }
-            window.WCF.System.PushNotification.addCallback("userNotificationCount", (counter) => {
-                this.updateCounter(counter);
-                this.stale = true;
-            });
         }
         getPanelButton() {
             return this.button;
index b36e2870b288c211cf6856d5536502f1a2e08edc..b9573f89b944d9f179ca51510322499c35690333 100644 (file)
@@ -51,12 +51,6 @@ class UserMenuDataConversation implements UserMenuProvider {
         this.counter = counter;
       }
     }
-
-    window.WCF.System.PushNotification.addCallback("userNotificationCount", (counter: number) => {
-      this.updateCounter(counter);
-
-      this.stale = true;
-    });
   }
 
   getPanelButton(): HTMLElement {