mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 20:20:43 +08:00
FIX: Stop incoming message tracking after navigating away. (#14498)
This commit is contained in:
parent
bbf9650736
commit
d82e5cd37c
|
@ -49,7 +49,7 @@ export default Controller.extend(BulkTopicSelection, {
|
|||
},
|
||||
|
||||
unsubscribe() {
|
||||
this.pmTopicTrackingState.resetIncomingTracking();
|
||||
this.pmTopicTrackingState.stopIncomingTracking();
|
||||
},
|
||||
|
||||
@action
|
||||
|
|
|
@ -81,6 +81,17 @@ const PrivateMessageTopicTrackingState = EmberObject.extend({
|
|||
}
|
||||
},
|
||||
|
||||
stopIncomingTracking() {
|
||||
if (this.inbox) {
|
||||
this.setProperties({
|
||||
newIncoming: [],
|
||||
inbox: null,
|
||||
filter: null,
|
||||
activeGroup: null,
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
removeTopics(topicIds) {
|
||||
if (!this.isTracking) {
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue
Block a user