Solves the CHCH sequence issue, CLJH remains

This commit is contained in:
Gigiaj 2025-05-26 00:37:48 -05:00
parent 9b98083d4a
commit 0bd42a3994

View file

@ -209,9 +209,8 @@ export function CallProvider({ children }: CallProviderProps) {
if (activeCallRoomId && viewedCallRoomId === activeCallRoomId) { if (activeCallRoomId && viewedCallRoomId === activeCallRoomId) {
setIsPrimaryIframe(!isPrimaryIframe); setIsPrimaryIframe(!isPrimaryIframe);
} else if (viewedCallRoomId !== viewedRoomId) setViewedCallRoomId(activeCallRoomId); } else if (viewedCallRoomId !== viewedRoomId) setViewedCallRoomId(activeCallRoomId);
} else if (viewedCallRoomId !== null) {
setIsPrimaryIframe(!isPrimaryIframe);
} else if (activeCallRoomId) setViewedCallRoomId(nextRoom); } else if (activeCallRoomId) setViewedCallRoomId(nextRoom);
setActiveClientWidgetApi(null, null, null); setActiveClientWidgetApi(null, null, null);
setActiveCallRoomId(null); setActiveCallRoomId(null);