A platform for community discussion. Free, open, simple.
FIX: Correctly update _subscribedTo* props (#20351)
Jarek Radosz9519747a0161
diff --git a/plugins/chat/assets/javascripts/discourse/services/chat-notification-manager.js b/plugins/chat/assets/javascripts/discourse/services/chat-notification-manager.jsindex b51bfc44d81..4e96cb76f89 100644--- a/plugins/chat/assets/javascripts/discourse/services/chat-notification-manager.js+++ b/plugins/chat/assets/javascripts/discourse/services/chat-notification-manager.js@@ -117,6 +117,7 @@ export default class ChatNotificationManager extends Service {if (!this._subscribedToChat) {this.messageBus.subscribe(this._chatAlertChannel(), this.onMessage);+ this.set("_subscribedToChat", true);}if (opts.only && this._subscribedToCore) {@@ -131,6 +132,7 @@ export default class ChatNotificationManager extends Service {}if (!this._subscribedToCore) {this.messageBus.subscribe(this._coreAlertChannel(), this.onMessage);+ this.set("_subscribedToCore", true);}if (opts.only && this._subscribedToChat) {