Manually disconnect & reconnect the livekit call if our focus changes

Without breaking the 'disconnected' screen
This commit is contained in:
David Baker
2023-08-29 12:44:30 +01:00
parent 992e6aa2a3
commit 4cd274b91e
4 changed files with 135 additions and 27 deletions

View File

@@ -27,6 +27,13 @@ export interface SFUConfig {
jwt: string;
}
export function sfuConfigEquals(a?: SFUConfig, b?: SFUConfig): boolean {
if (a === undefined && b === undefined) return true;
if (a === undefined || b === undefined) return false;
return a.jwt === b.jwt && a.url === b.url;
}
// The bits we need from MatrixClient
export type OpenIDClientParts = Pick<
MatrixClient,