mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-23 20:13:20 +00:00
Fix leave room (#6150)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
068520b211
commit
2f415a554c
@ -352,7 +352,7 @@
|
||||
})
|
||||
|
||||
const beforeUnloadListener = () => {
|
||||
if ($myInfo !== undefined) {
|
||||
if ($myInfo !== undefined && $isCurrentInstanceConnected) {
|
||||
leaveRoom($myInfo, $myOffice)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user