[MM-50973] Harden Calls windows URL navigation checks (#2573)

* Harden Calls windows URL navigation checks

* Update src/main/windows/callsWidgetWindow.ts

Co-authored-by: Eva Sarafianou <eva.sarafianou@gmail.com>

* Fix bad merge

* Extract team name to use isUrlType

* Simplify

---------

Co-authored-by: Eva Sarafianou <eva.sarafianou@gmail.com>
This commit is contained in:
Claudio Costa
2023-03-02 12:10:47 -06:00
committed by GitHub
parent 09debd6adb
commit a52e96694d
7 changed files with 148 additions and 31 deletions

View File

@@ -284,7 +284,7 @@ export class ViewManager {
log.error(`Couldn't find a view with the name ${viewName}`);
return;
}
WebContentsEventManager.addMattermostViewEventListeners(view, this.getServers);
WebContentsEventManager.addMattermostViewEventListeners(view);
}
finishLoading = (server: string) => {