зеркало из https://github.com/nextcloud/spreed.git
Merge pull request #483 from nextcloud/fix/481/make-user-leave-the-room-on-unload
also leave the room when the user navigates away
This commit is contained in:
Коммит
8b5b4e2572
|
@ -116,6 +116,7 @@
|
|||
if (signaling) {
|
||||
// We currently only support a single active call.
|
||||
signaling.leaveCurrentCall();
|
||||
signaling.leaveCurrentRoom();
|
||||
}
|
||||
},
|
||||
showRoomDeletedMessage: function(deleter) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче