Revert "Wait for .well-known/matrix/client to load before determining MatrixRTC foci" (#2902)
This reverts commit 92afd5d63a.
This commit is contained in:
@@ -40,7 +40,7 @@ test("It joins the correct Session", async () => {
|
|||||||
room: {
|
room: {
|
||||||
roomId: "roomId",
|
roomId: "roomId",
|
||||||
client: {
|
client: {
|
||||||
waitForClientWellKnown: vi.fn().mockResolvedValue(clientWellKnown),
|
getClientWellKnown: vi.fn().mockReturnValue(clientWellKnown),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
memberships: [],
|
memberships: [],
|
||||||
|
|||||||
@@ -44,9 +44,8 @@ async function makePreferredLivekitFoci(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Prioritize the client well known over the configured sfu.
|
// Prioritize the client well known over the configured sfu.
|
||||||
const wellKnownFoci = (
|
const wellKnownFoci =
|
||||||
await rtcSession.room.client.waitForClientWellKnown()
|
rtcSession.room.client.getClientWellKnown()?.[FOCI_WK_KEY];
|
||||||
)?.[FOCI_WK_KEY];
|
|
||||||
if (Array.isArray(wellKnownFoci)) {
|
if (Array.isArray(wellKnownFoci)) {
|
||||||
preferredFoci.push(
|
preferredFoci.push(
|
||||||
...wellKnownFoci
|
...wellKnownFoci
|
||||||
|
|||||||
Reference in New Issue
Block a user