diff --git a/src/main/views/MattermostView.ts b/src/main/views/MattermostView.ts index 81785bdb..99121688 100644 --- a/src/main/views/MattermostView.ts +++ b/src/main/views/MattermostView.ts @@ -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); }