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