[MM-38991] Remove mentions and unreads when unloading a view (#1780)

This commit is contained in:
Devin Binnie
2021-10-05 10:18:27 -04:00
committed by GitHub
parent 658aec559d
commit ca1457f023

View File

@@ -217,6 +217,7 @@ export class MattermostView extends EventEmitter {
destroy = () => { destroy = () => {
removeWebContentsListeners(this.view.webContents.id); removeWebContentsListeners(this.view.webContents.id);
appState.updateMentions(this.tab.name, 0, false);
if (this.window) { if (this.window) {
this.window.removeBrowserView(this.view); this.window.removeBrowserView(this.view);
} }