diff options
Diffstat (limited to 'src/utils/signaling.js')
-rw-r--r-- | src/utils/signaling.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/utils/signaling.js b/src/utils/signaling.js index 14d4e7222..a305bff32 100644 --- a/src/utils/signaling.js +++ b/src/utils/signaling.js @@ -242,7 +242,7 @@ Signaling.Base.prototype._joinCallSuccess = function(/* token */) { Signaling.Base.prototype.joinCall = function(token, flags) { return new Promise((resolve, reject) => { - axios.post(generateOcsUrl('apps/spreed/api/v1/call', 2) + token, { + axios.post(generateOcsUrl('apps/spreed/api/v4/call', 2) + token, { flags: flags, }) .then(function() { @@ -273,7 +273,7 @@ Signaling.Base.prototype.leaveCall = function(token, keepToken) { return } - axios.delete(generateOcsUrl('apps/spreed/api/v1/call', 2) + token) + axios.delete(generateOcsUrl('apps/spreed/api/v4/call', 2) + token) .then(function() { this._trigger('leaveCall', [token, keepToken]) this._leaveCallSuccess(token) @@ -1094,10 +1094,7 @@ Signaling.Standalone.prototype.processRoomEvent = function(data) { delete leftUsers[joinedUsers[i].sessionid] if (this.settings.userId && joinedUsers[i].userid === this.settings.userId) { - if (this.ownSessionJoined && joinedUsers[i].sessionid !== this.sessionId) { - console.error('Duplicated session detected for the same user.') - EventBus.$emit('duplicateSessionDetected') - } else if (joinedUsers[i].sessionid === this.sessionId) { + if (joinedUsers[i].sessionid === this.sessionId) { // We are ignoring joins before we found our own message, // as otherwise you get the warning for your own old session immediately this.ownSessionJoined = true |