[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 = () => {
|
||||
removeWebContentsListeners(this.view.webContents.id);
|
||||
appState.updateMentions(this.tab.name, 0, false);
|
||||
if (this.window) {
|
||||
this.window.removeBrowserView(this.view);
|
||||
}
|
||||
|
Reference in New Issue
Block a user