Fix media permissions failure on Calls window (#2550)

This commit is contained in:
Claudio Costa
2023-02-10 11:13:31 -06:00
committed by GitHub
parent 8dbdb0a75e
commit 562ef14aef
4 changed files with 65 additions and 0 deletions

View File

@@ -862,6 +862,10 @@ export class WindowManager {
}
getServerURLFromWebContentsId = (id: number) => {
if (this.callsWidgetWindow && id === this.callsWidgetWindow.getWebContentsId()) {
return this.callsWidgetWindow.getURL();
}
const viewName = this.getViewNameByWebContentsId(id);
if (!viewName) {
return undefined;