Merge pull request #667 from vector-im/SimonBrandner/feat/ice-fallback

This commit is contained in:
Šimon Brandner
2022-10-26 17:52:44 +02:00
committed by GitHub
3 changed files with 7 additions and 0 deletions

View File

@@ -22,6 +22,8 @@ import { getUrlParams } from "./UrlParams";
export const defaultHomeserver =
(import.meta.env.VITE_DEFAULT_HOMESERVER as string) ??
`${window.location.protocol}//${window.location.host}`;
export const fallbackICEServerAllowed =
import.meta.env.VITE_FALLBACK_STUN_ALLOWED === "true";
export const defaultHomeserverHost = new URL(defaultHomeserver).host;
@@ -146,6 +148,7 @@ export async function initClient(
// so we don't want API calls taking ages, we'd rather they just fail.
localTimeoutMs: 5000,
useE2eForGroupCall: e2eEnabled,
fallbackICEServerAllowed: fallbackICEServerAllowed,
});
try {