forked from github/cinny
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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user