diff --git a/client/views/room/contextualBar/Call/BBB/CallBBB.tsx b/client/views/room/contextualBar/Call/BBB/CallBBB.tsx index 6c11a7e1573c..935d7b869129 100644 --- a/client/views/room/contextualBar/Call/BBB/CallBBB.tsx +++ b/client/views/room/contextualBar/Call/BBB/CallBBB.tsx @@ -85,14 +85,14 @@ const D: FC<{ rid: IRoom['_id'] }> = ({ rid }) => { }); useEffect(() => { - if (room?.streamingOptions?.type !== 'call' || popout.context) { + if (room?.streamingOptions?.type !== 'call' || openNewWindow || popout.context) { return; } startCall(); return (): void => { popout.close(); }; - }, [room?.streamingOptions?.type, startCall]); + }, [room?.streamingOptions?.type, startCall, openNewWindow]); const canManageCall = room?.t === 'd' || hasCallManagement;