Browse Source
Defer joining rooms until signaling server is connected.
Signed-off-by: Joachim Bauch <bauch@struktur.de>
pull/864/head
Joachim Bauch
8 years ago
Failed to extract signature
1 changed files with
13 additions and
0 deletions
-
js/signaling.js
|
|
|
@ -770,6 +770,19 @@ |
|
|
|
return this.internalSyncRooms(); |
|
|
|
}; |
|
|
|
|
|
|
|
OCA.Talk.Signaling.Standalone.prototype.joinRoom = function(token /*, password */) { |
|
|
|
if (!this.sessionId) { |
|
|
|
// If we would join without a connection to the signaling server here,
|
|
|
|
// the room would be re-joined again in the "helloResponseReceived"
|
|
|
|
// callback, leading to two entries for anonymous participants.
|
|
|
|
console.log("Not connected to signaling server yet, defer joining room", token); |
|
|
|
this.currentRoomToken = token; |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
return OCA.Talk.Signaling.Base.prototype.joinRoom.apply(this, arguments); |
|
|
|
}; |
|
|
|
|
|
|
|
OCA.Talk.Signaling.Standalone.prototype._joinRoomSuccess = function(token, nextcloudSessionId) { |
|
|
|
console.log("Join room", token); |
|
|
|
this.doSend({ |
|
|
|
|