Fix leave room (#6150)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2024-07-26 10:36:15 +05:00 committed by Andrey Sobolev
parent 068520b211
commit 2f415a554c
No known key found for this signature in database
GPG Key ID: BD80F68D68D8F7F2

View File

@ -352,7 +352,7 @@
})
const beforeUnloadListener = () => {
if ($myInfo !== undefined) {
if ($myInfo !== undefined && $isCurrentInstanceConnected) {
leaveRoom($myInfo, $myOffice)
}
}