diff options
-rw-r--r-- | js/calls.js | 1 | ||||
-rw-r--r-- | js/signaling.js | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/js/calls.js b/js/calls.js index 3caa52779..e9353938b 100644 --- a/js/calls.js +++ b/js/calls.js @@ -116,6 +116,7 @@ if (signaling) { // We currently only support a single active call. signaling.leaveCurrentCall(); + signaling.leaveCurrentRoom(); } }, showRoomDeletedMessage: function(deleter) { diff --git a/js/signaling.js b/js/signaling.js index 1fbc37439..af7c13c65 100644 --- a/js/signaling.js +++ b/js/signaling.js @@ -81,9 +81,9 @@ }; SignalingBase.prototype.leaveCurrentRoom = function() { - if (this.currentCallToken) { - this.leaveRoom(this.currentCallToken); - this.currentCallToken = null; + if (this.currentRoomToken) { + this.leaveRoom(this.currentRoomToken); + this.currentRoomToken = null; } }; |