From 0360889fd60cfbadcca3dbe52ed5f36f6dab3620 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 6 Sep 2022 15:11:45 +0100 Subject: [PATCH 1/2] Log ID instead of object as otherwise it recurses and logs the entire client + store --- src/room/useLoadGroupCall.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/room/useLoadGroupCall.ts b/src/room/useLoadGroupCall.ts index 37fcf5e..1679810 100644 --- a/src/room/useLoadGroupCall.ts +++ b/src/room/useLoadGroupCall.ts @@ -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); + logger.debug("Got group call", groupCall.groupCallId); if (groupCall) return groupCall; From 70dffe95ffda72c2ec858797cd2ebaf98656edd3 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 7 Sep 2022 11:42:37 +0100 Subject: [PATCH 2/2] Handle groupcall being null --- src/room/useLoadGroupCall.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/room/useLoadGroupCall.ts b/src/room/useLoadGroupCall.ts index 1679810..1931cd2 100644 --- a/src/room/useLoadGroupCall.ts +++ b/src/room/useLoadGroupCall.ts @@ -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;