mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-09 08:40:29 +03:00
Remove viewed room setting here and pass the room to hang up (seems state doesn't update fast enough otherwise)
This commit is contained in:
parent
7d26601bfc
commit
99576a2432
1 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue