mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
FIX: Incorrectly deleting channel preventing us from unsubscribing MB.
This commit is contained in:
@@ -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
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user