From ca1457f023dfcfc2d36ef733a5277a7e29c85dd2 Mon Sep 17 00:00:00 2001 From: Devin Binnie <52460000+devinbinnie@users.noreply.github.com> Date: Tue, 5 Oct 2021 10:18:27 -0400 Subject: [PATCH] [MM-38991] Remove mentions and unreads when unloading a view (#1780) --- src/main/views/MattermostView.ts | 1 + 1 file changed, 1 insertion(+) 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); }