[MM-38991] Remove mentions and unreads when unloading a view (#1780)
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user