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 GitHub
parent 5abc1ec427
commit d9b4d11730
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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