Synchronize the unread indicator on menu close
authorAlexander Ebert <ebert@woltlab.com>
Mon, 25 Apr 2022 15:12:54 +0000 (17:12 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 25 Apr 2022 15:12:54 +0000 (17:12 +0200)
See https://www.woltlab.com/community/thread/295340-mobiler-hinweis-verschwindet-nicht-direkt-nach-benachrichtigungen-als-gelesen-ma/

ts/WoltLabSuite/Core/Ui/Page/Menu/User.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Menu/User.js

index c30dc41312ffb91d6d8a6a2e95eb4d3432c3c373..13a0da08009a64d97b1f6216c8160c53731e6915 100644 (file)
@@ -106,6 +106,8 @@ export class PageMenuUser implements PageMenuProvider {
     }
 
     this.detachViewsFromPanel();
+
+    this.refreshUnreadIndicator();
   }
 
   wakeup(): void {
index 91c00eeee3e83f2d0033b92ac47abe88e4578183..72be233c6011e1f1131fb0625641028819743dd9 100644 (file)
@@ -64,6 +64,7 @@ define(["require", "exports", "tslib", "./Container", "../../../Language", "../.
                 this.closeTab(this.activeTab);
             }
             this.detachViewsFromPanel();
+            this.refreshUnreadIndicator();
         }
         wakeup() {
             if (this.activeTab) {