🚀 Auto-deploy: melhoria no snap e medição AR em 30/05/2026 14:37:42
This commit is contained in:
@@ -995,11 +995,13 @@ export default function MeetingRoom() {
|
|||||||
const channelRef = useRef<ReturnType<typeof supabase.channel> | null>(null);
|
const channelRef = useRef<ReturnType<typeof supabase.channel> | null>(null);
|
||||||
const chatScrollRef = useRef<HTMLDivElement>(null);
|
const chatScrollRef = useRef<HTMLDivElement>(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(() => {
|
useEffect(() => {
|
||||||
|
if (!inRoom) {
|
||||||
setIsPresenter(!roomId);
|
setIsPresenter(!roomId);
|
||||||
setInputRoomId(roomId || '');
|
setInputRoomId(roomId || '');
|
||||||
}, [roomId]);
|
}
|
||||||
|
}, [roomId, inRoom]);
|
||||||
|
|
||||||
// Simulação de detecção de áudio
|
// Simulação de detecção de áudio
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user