From 86639b5928caff86629d2a179b6a2e32d15d32be Mon Sep 17 00:00:00 2001 From: Hardik Maheshwari <93115614+hdz-666@users.noreply.github.com> Date: Tue, 29 Oct 2024 12:24:13 +0530 Subject: [PATCH] fix: handle UI state on peer join timeout --- packages/roomkit-react/src/Prebuilt/AppStateContext.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/roomkit-react/src/Prebuilt/AppStateContext.tsx b/packages/roomkit-react/src/Prebuilt/AppStateContext.tsx index 7c48647629..99aadb311c 100644 --- a/packages/roomkit-react/src/Prebuilt/AppStateContext.tsx +++ b/packages/roomkit-react/src/Prebuilt/AppStateContext.tsx @@ -67,6 +67,7 @@ export const useAppStateManager = () => { [HMSRoomState.Disconnected, HMSRoomState.Connected], [HMSRoomState.Disconnected, HMSRoomState.Connecting], [HMSRoomState.Disconnected, HMSRoomState.Reconnecting], + [HMSRoomState.Disconnected, HMSRoomState.Preview], () => { setActiveState(prevState => { return match({ isLeaveScreenEnabled, isPreviewScreenEnabled, prevState })