Handle groupcall being null

This commit is contained in:
David Baker 2022-09-07 11:42:37 +01:00
parent 0360889fd6
commit 70dffe95ff

View File

@ -80,7 +80,7 @@ export const useLoadGroupCall = (
const room = await fetchOrCreateRoom();
logger.debug(`Fetched / joined room ${roomIdOrAlias}`);
const groupCall = client.getGroupCallForRoom(room.roomId);
logger.debug("Got group call", groupCall.groupCallId);
logger.debug("Got group call", groupCall?.groupCallId);
if (groupCall) return groupCall;