Skip to content

A platform for community discussion. Free, open, simple.

FIX: correctly resubscribe after restart (#21891)

Joffrey JAFFEUX676b55826525
diff --git a/plugins/chat/assets/javascripts/discourse/services/chat-subscriptions-manager.js b/plugins/chat/assets/javascripts/discourse/services/chat-subscriptions-manager.js
index cc6f2949633..5dd75258bf7 100644
--- a/plugins/chat/assets/javascripts/discourse/services/chat-subscriptions-manager.js
+++ b/plugins/chat/assets/javascripts/discourse/services/chat-subscriptions-manager.js
@@ -57,6 +57,10 @@ export default class ChatSubscriptionsManager extends Service {
restartChannelsSubscriptions(messageBusIds) {
this.stopChannelsSubscriptions();
this.startChannelsSubscriptions(messageBusIds);
+
+ (this.chatChannelsManager.channels || []).forEach((channel) => {
+ this.startChannelSubscription(channel);
+ });
}
startChannelsSubscriptions(messageBusIds) {