diff --git a/desktop/renderer-app/src/pages/utils/join-room-handler.ts b/desktop/renderer-app/src/pages/utils/join-room-handler.ts index d3d2a86213e..2c65dec5f5b 100644 --- a/desktop/renderer-app/src/pages/utils/join-room-handler.ts +++ b/desktop/renderer-app/src/pages/utils/join-room-handler.ts @@ -11,7 +11,8 @@ export const joinRoomHandler = async ( try { const formatRoomUUID = roomUUID.replace(/\s+/g, ""); const roomInfo = roomStore.rooms.get(formatRoomUUID); - const data = await roomStore.joinRoom(formatRoomUUID); + const periodicUUID = roomInfo?.periodicUUID; + const data = await roomStore.joinRoom(periodicUUID || formatRoomUUID); globalStore.updateShowGuide(data.showGuide); globalStore.updatePeriodicUUID(roomInfo?.periodicUUID); diff --git a/web/flat-web/src/pages/utils/join-room-handler.ts b/web/flat-web/src/pages/utils/join-room-handler.ts index 19ea6c062cf..56c873918a0 100644 --- a/web/flat-web/src/pages/utils/join-room-handler.ts +++ b/web/flat-web/src/pages/utils/join-room-handler.ts @@ -11,7 +11,8 @@ export const joinRoomHandler = async ( try { const formatRoomUUID = roomUUID.replace(/\s+/g, ""); const roomInfo = roomStore.rooms.get(formatRoomUUID); - const data = await roomStore.joinRoom(formatRoomUUID); + const periodicUUID = roomInfo?.periodicUUID; + const data = await roomStore.joinRoom(periodicUUID || formatRoomUUID); globalStore.updateShowGuide(data.showGuide); globalStore.updatePeriodicUUID(roomInfo?.periodicUUID); // try to work around chrome does not show permission popup after