From c4075f736f188c76d891dc734051355551626ba2 Mon Sep 17 00:00:00 2001 From: Timo <16718859+toger5@users.noreply.github.com> Date: Wed, 21 Feb 2024 15:41:59 +0100 Subject: [PATCH] Federated room joins (#2188) --- src/matrix-utils.ts | 1 + src/room/useLoadGroupCall.ts | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/matrix-utils.ts b/src/matrix-utils.ts index 48c51d15..f5025710 100644 --- a/src/matrix-utils.ts +++ b/src/matrix-utils.ts @@ -189,6 +189,7 @@ export async function initClient( } await client.initCrypto(); + client.setGlobalErrorOnUnknownDevices(false); await client.startClient(); await waitForSync(client); diff --git a/src/room/useLoadGroupCall.ts b/src/room/useLoadGroupCall.ts index 9b300d36..920cb8bc 100644 --- a/src/room/useLoadGroupCall.ts +++ b/src/room/useLoadGroupCall.ts @@ -82,10 +82,7 @@ export const useLoadGroupCall = ( ); } } else { - // room IDs we just try to join by their ID, which will not work in the - // general case without providing some servers to join via. We could provide - // our own server, but in practice that is implicit. - room = await client.joinRoom(roomIdOrAlias); + room = await client.joinRoom(roomIdOrAlias, { viaServers }); } logger.info(