mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 03:14:40 +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 = () => {
|
||||
if ($myInfo !== undefined) {
|
||||
if ($myInfo !== undefined && $isCurrentInstanceConnected) {
|
||||
leaveRoom($myInfo, $myOffice)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user