mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-25 06:25:40 +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
c7af117f4e
commit
148dedbc6c
1 changed files with 5 additions and 1 deletions
|
@ -138,11 +138,15 @@ public class WebSocketConnectionHelper {
|
|||
roomWebSocketMessage.setRoomId(roomId);
|
||||
roomWebSocketMessage.setSessionId(sessionId);
|
||||
if (federation != null) {
|
||||
String federationAuthToken = null;
|
||||
if (federation.getHelloAuthParams() != null) {
|
||||
federationAuthToken = federation.getHelloAuthParams().getToken();
|
||||
}
|
||||
RoomFederationWebSocketMessage roomFederationWebSocketMessage = new RoomFederationWebSocketMessage();
|
||||
roomFederationWebSocketMessage.setSignaling(federation.getServer());
|
||||
roomFederationWebSocketMessage.setUrl(federation.getNextcloudServer() + "/ocs/v2.php/apps/spreed/api/v3/signaling/backend");
|
||||
roomFederationWebSocketMessage.setRoomid(federation.getRoomId());
|
||||
roomFederationWebSocketMessage.setToken(federation.getHelloAuthParams().getToken());
|
||||
roomFederationWebSocketMessage.setToken(federationAuthToken);
|
||||
roomWebSocketMessage.setRoomFederationWebSocketMessage(roomFederationWebSocketMessage);
|
||||
}
|
||||
roomOverallWebSocketMessage.setRoomWebSocketMessage(roomWebSocketMessage);
|
||||
|
|
Loading…
Reference in a new issue