fix: guard for cases where user hits leave before being connected to the room

Co-authored-by: Tudor-Ovidiu Avram <tudor.potecaru@8x8.com>
This commit is contained in:
Potecaru Tudor 2020-04-29 15:52:44 +03:00 committed by GitHub
parent 60148b6439
commit fd11c36bc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2829,7 +2829,7 @@ export default {
leaveRoomAndDisconnect() {
APP.store.dispatch(conferenceWillLeave(room));
if (room.isJoined()) {
if (room && room.isJoined()) {
return room.leave().then(disconnect, disconnect);
}