From 46ae916a4a2c5c222b1d838382fa7c2513299b58 Mon Sep 17 00:00:00 2001 From: admtracksteel Date: Sat, 30 May 2026 14:37:42 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Auto-deploy:=20melhoria=20no=20s?= =?UTF-8?q?nap=20e=20medi=C3=A7=C3=A3o=20AR=20em=2030/05/2026=2014:37:42?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/MeetingRoom.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/pages/MeetingRoom.tsx b/src/pages/MeetingRoom.tsx index bf8c180..de4fa18 100644 --- a/src/pages/MeetingRoom.tsx +++ b/src/pages/MeetingRoom.tsx @@ -995,11 +995,13 @@ export default function MeetingRoom() { const channelRef = useRef | null>(null); const chatScrollRef = useRef(null); - // Se o roomId mudar na url, atualiza o checkbox isPresenter e o inputRoomId + // Se o roomId mudar na url, atualiza o checkbox isPresenter e o inputRoomId (apenas se ainda não entrou na reunião) useEffect(() => { - setIsPresenter(!roomId); - setInputRoomId(roomId || ''); - }, [roomId]); + if (!inRoom) { + setIsPresenter(!roomId); + setInputRoomId(roomId || ''); + } + }, [roomId, inRoom]); // Simulação de detecção de áudio useEffect(() => {