mirror of
https://github.com/discourse/discourse.git
synced 2025-09-04 08:47:37 +08:00
FIX: Incorrectly deleting channel
preventing us from unsubscribing MB.
This commit is contained in:
parent
7068b90c01
commit
e09a4a353e
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue