From 99576a24326f669ed63454eec6c3c38c41a4f147 Mon Sep 17 00:00:00 2001 From: Gigiaj Date: Sun, 25 May 2025 16:30:23 -0500 Subject: [PATCH] Remove viewed room setting here and pass the room to hang up (seems state doesn't update fast enough otherwise) --- src/app/features/room-nav/RoomNavItem.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/app/features/room-nav/RoomNavItem.tsx b/src/app/features/room-nav/RoomNavItem.tsx index 6e4833de..323209bb 100644 --- a/src/app/features/room-nav/RoomNavItem.tsx +++ b/src/app/features/room-nav/RoomNavItem.tsx @@ -268,10 +268,9 @@ export function RoomNavItem({ if (room.isCallRoom()) { if (!isMobile) { if (activeCallRoomId !== room.roomId) { - hangUp(); - if (viewedCallRoomId === activeCallRoomId) setViewedCallRoomId(room.roomId); - setActiveCallRoomId(room.roomId); navigateRoom(room.roomId); + hangUp(room.roomId); + setActiveCallRoomId(room.roomId); } else { navigateRoom(room.roomId); }