[MM-38310][MM-38313][MM-38315] Fixed some issues caused by having multiple tabs (#1722)

* [MM-38313][MM-38315] Fixed some issues caused by having multiple tabs

* [MM-38310] Make sure notification navigates to correct tab
This commit is contained in:
Devin Binnie
2021-09-03 14:55:52 -04:00
committed by GitHub
parent 3213a16774
commit cfc0613d0f
12 changed files with 49 additions and 20 deletions

View File

@@ -18,7 +18,7 @@ import {
IS_UNREAD,
UNREAD_RESULT,
TOGGLE_BACK_BUTTON,
SET_VIEW_NAME,
SET_VIEW_OPTIONS,
LOADSCREEN_END,
} from 'common/communication';
@@ -97,7 +97,7 @@ export class MattermostView extends EventEmitter {
}
this.view.webContents.on('did-finish-load', () => {
this.view.webContents.send(SET_VIEW_NAME, this.tab.name);
this.view.webContents.send(SET_VIEW_OPTIONS, this.tab.name, this.tab.shouldNotify);
});
this.contextMenu = new ContextMenu({}, this.view);