mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-08 00:00:28 +03:00
Fixes call initializing by default on mobile
This commit is contained in:
parent
65ff5e3943
commit
b6afe3b968
1 changed files with 11 additions and 9 deletions
|
|
@ -262,20 +262,22 @@ export function RoomNavItem({
|
||||||
if (chatButton && chatButton.contains(target)) {
|
if (chatButton && chatButton.contains(target)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!isMobile) {
|
if (room.isCallRoom()) {
|
||||||
if (room.isCallRoom() && activeCallRoomId !== room.roomId) {
|
if (!isMobile) {
|
||||||
hangUp();
|
if (activeCallRoomId !== room.roomId) {
|
||||||
setActiveCallRoomId(room.roomId);
|
hangUp();
|
||||||
if (mx.getRoom(viewedRoomId)?.isCallRoom()) {
|
setActiveCallRoomId(room.roomId);
|
||||||
navigateRoom(room.roomId);
|
if (mx.getRoom(viewedRoomId)?.isCallRoom()) {
|
||||||
|
navigateRoom(room.roomId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
evt.stopPropagation();
|
||||||
|
if (isChatOpen) toggleChat();
|
||||||
|
setViewedCallRoomId(room.roomId);
|
||||||
navigateRoom(room.roomId);
|
navigateRoom(room.roomId);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
evt.stopPropagation();
|
|
||||||
if (isChatOpen) toggleChat();
|
|
||||||
setViewedCallRoomId(room.roomId);
|
|
||||||
navigateRoom(room.roomId);
|
navigateRoom(room.roomId);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue