mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-10 09:10: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 (room.isCallRoom()) {
|
||||||
if (!isMobile) {
|
if (!isMobile) {
|
||||||
if (activeCallRoomId !== room.roomId) {
|
if (activeCallRoomId !== room.roomId) {
|
||||||
hangUp();
|
|
||||||
if (viewedCallRoomId === activeCallRoomId) setViewedCallRoomId(room.roomId);
|
|
||||||
setActiveCallRoomId(room.roomId);
|
|
||||||
navigateRoom(room.roomId);
|
navigateRoom(room.roomId);
|
||||||
|
hangUp(room.roomId);
|
||||||
|
setActiveCallRoomId(room.roomId);
|
||||||
} else {
|
} else {
|
||||||
navigateRoom(room.roomId);
|
navigateRoom(room.roomId);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue