projects
/
GitHub
/
WoltLab
/
com.woltlab.wcf.conversation.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca51906
)
Incorrect callback for notifications was used
author
Alexander Ebert
<ebert@woltlab.com>
Sat, 16 Apr 2022 12:18:39 +0000
(14:18 +0200)
committer
Alexander 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
patch
|
blob
|
blame
|
history
ts/WoltLabSuite/Core/Conversation/Ui/User/Menu/Data/Conversation.ts
patch
|
blob
|
blame
|
history
diff --git
a/files/js/WoltLabSuite/Core/Conversation/Ui/User/Menu/Data/Conversation.js
b/files/js/WoltLabSuite/Core/Conversation/Ui/User/Menu/Data/Conversation.js
index e40f0eef58b9e5833f8bf2f38abc1e0188472a09..c1c002572097a8e3fb4a7d11b12fa8ab08dd04b0 100644
(file)
--- a/
files/js/WoltLabSuite/Core/Conversation/Ui/User/Menu/Data/Conversation.js
+++ b/
files/js/WoltLabSuite/Core/Conversation/Ui/User/Menu/Data/Conversation.js
@@
-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;
diff --git
a/ts/WoltLabSuite/Core/Conversation/Ui/User/Menu/Data/Conversation.ts
b/ts/WoltLabSuite/Core/Conversation/Ui/User/Menu/Data/Conversation.ts
index b36e2870b288c211cf6856d5536502f1a2e08edc..b9573f89b944d9f179ca51510322499c35690333 100644
(file)
--- a/
ts/WoltLabSuite/Core/Conversation/Ui/User/Menu/Data/Conversation.ts
+++ b/
ts/WoltLabSuite/Core/Conversation/Ui/User/Menu/Data/Conversation.ts
@@
-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 {