mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 11:48:26 -06:00
FIX: Incorrectly deleting channel
preventing us from unsubscribing MB.
This commit is contained in:
parent
7068b90c01
commit
e09a4a353e
@ -33,13 +33,13 @@ export default Ember.Controller.extend({
|
|||||||
unsubscribe() {
|
unsubscribe() {
|
||||||
this.messageBus.unsubscribe(this.get('channel'));
|
this.messageBus.unsubscribe(this.get('channel'));
|
||||||
this._resetTracking();
|
this._resetTracking();
|
||||||
|
this.set('channel', null);
|
||||||
},
|
},
|
||||||
|
|
||||||
_resetTracking() {
|
_resetTracking() {
|
||||||
this.setProperties({
|
this.setProperties({
|
||||||
"newIncoming": [],
|
"newIncoming": [],
|
||||||
"incomingCount": 0,
|
"incomingCount": 0
|
||||||
"channel": null,
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user