From e09a4a353ea1a7247a90e51709d65d0063acbc9f Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Tue, 6 Mar 2018 19:52:00 +0800 Subject: [PATCH] FIX: Incorrectly deleting `channel` preventing us from unsubscribing MB. --- .../javascripts/discourse/controllers/user-topics-list.js.es6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/controllers/user-topics-list.js.es6 b/app/assets/javascripts/discourse/controllers/user-topics-list.js.es6 index 804f0ebf508..956557c14ea 100644 --- a/app/assets/javascripts/discourse/controllers/user-topics-list.js.es6 +++ b/app/assets/javascripts/discourse/controllers/user-topics-list.js.es6 @@ -33,13 +33,13 @@ export default Ember.Controller.extend({ unsubscribe() { this.messageBus.unsubscribe(this.get('channel')); this._resetTracking(); + this.set('channel', null); }, _resetTracking() { this.setProperties({ "newIncoming": [], - "incomingCount": 0, - "channel": null, + "incomingCount": 0 }); },