mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-26 04:23:58 +03:00
Fix leave room (#6150)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
5abc1ec427
commit
d9b4d11730
@ -352,7 +352,7 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
const beforeUnloadListener = () => {
|
const beforeUnloadListener = () => {
|
||||||
if ($myInfo !== undefined) {
|
if ($myInfo !== undefined && $isCurrentInstanceConnected) {
|
||||||
leaveRoom($myInfo, $myOffice)
|
leaveRoom($myInfo, $myOffice)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user