mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-24 22:15:41 +03:00
fixup! Provide federation values when joining a room in the external signaling
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
3cdcd22dd3
commit
2663ecabed
2 changed files with 10 additions and 5 deletions
|
@ -1632,8 +1632,9 @@ class CallActivity : CallBaseActivity() {
|
|||
|
||||
private fun callOrJoinRoomViaWebSocket() {
|
||||
if (hasExternalSignalingServer) {
|
||||
webSocketClient!!.joinRoomWithRoomTokenAndSession(roomToken!!, callSession,
|
||||
externalSignalingServer!!.federation)
|
||||
webSocketClient!!.joinRoomWithRoomTokenAndSession(
|
||||
roomToken!!, callSession, externalSignalingServer!!.federation
|
||||
)
|
||||
} else {
|
||||
performCall()
|
||||
}
|
||||
|
|
|
@ -369,8 +369,11 @@ class WebSocketInstance internal constructor(
|
|||
return hasMCU
|
||||
}
|
||||
|
||||
fun joinRoomWithRoomTokenAndSession(roomToken: String, normalBackendSession: String?,
|
||||
federation: FederationSettings? = null) {
|
||||
fun joinRoomWithRoomTokenAndSession(
|
||||
roomToken: String,
|
||||
normalBackendSession: String?,
|
||||
federation: FederationSettings? = null
|
||||
) {
|
||||
Log.d(TAG, "joinRoomWithRoomTokenAndSession")
|
||||
Log.d(TAG, " roomToken: $roomToken")
|
||||
Log.d(TAG, " session: $normalBackendSession")
|
||||
|
@ -384,7 +387,8 @@ class WebSocketInstance internal constructor(
|
|||
currentFederation = null
|
||||
sendMessage(message)
|
||||
} else if (roomToken == currentRoomToken && normalBackendSession == currentNormalBackendSession &&
|
||||
federation == currentFederation) {
|
||||
federation?.roomId == currentFederation?.roomId && federation?.nextcloudServer == federation?.nextcloudServer
|
||||
) {
|
||||
Log.d(TAG, "roomToken & session are unchanged. Joining locally without to send websocket message")
|
||||
sendRoomJoinedEvent()
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue