Lowercase room alias before joining

This commit is contained in:
David Baker
2023-01-19 19:20:42 +00:00
parent 9437a00997
commit 524f530dce
2 changed files with 11 additions and 1 deletions

View File

@@ -52,7 +52,11 @@ export const useLoadGroupCall = (
const fetchOrCreateRoom = async (): Promise<Room> => {
try {
const room = await client.joinRoom(roomIdOrAlias, { viaServers });
// We lowercase the localpart when we create the room, so we must lowercase
// it here too (we just do the whole alias).
const room = await client.joinRoom(roomIdOrAlias.toLowerCase(), {
viaServers,
});
logger.info(
`Joined ${roomIdOrAlias}, waiting room to be ready for group calls`
);