mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-29 01:48:53 +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.setRoomId(roomId);
|
||||||
roomWebSocketMessage.setSessionId(sessionId);
|
roomWebSocketMessage.setSessionId(sessionId);
|
||||||
if (federation != null) {
|
if (federation != null) {
|
||||||
|
String federationAuthToken = null;
|
||||||
|
if (federation.getHelloAuthParams() != null) {
|
||||||
|
federationAuthToken = federation.getHelloAuthParams().getToken();
|
||||||
|
}
|
||||||
RoomFederationWebSocketMessage roomFederationWebSocketMessage = new RoomFederationWebSocketMessage();
|
RoomFederationWebSocketMessage roomFederationWebSocketMessage = new RoomFederationWebSocketMessage();
|
||||||
roomFederationWebSocketMessage.setSignaling(federation.getServer());
|
roomFederationWebSocketMessage.setSignaling(federation.getServer());
|
||||||
roomFederationWebSocketMessage.setUrl(federation.getNextcloudServer() + "/ocs/v2.php/apps/spreed/api/v3/signaling/backend");
|
roomFederationWebSocketMessage.setUrl(federation.getNextcloudServer() + "/ocs/v2.php/apps/spreed/api/v3/signaling/backend");
|
||||||
roomFederationWebSocketMessage.setRoomid(federation.getRoomId());
|
roomFederationWebSocketMessage.setRoomid(federation.getRoomId());
|
||||||
roomFederationWebSocketMessage.setToken(federation.getHelloAuthParams().getToken());
|
roomFederationWebSocketMessage.setToken(federationAuthToken);
|
||||||
roomWebSocketMessage.setRoomFederationWebSocketMessage(roomFederationWebSocketMessage);
|
roomWebSocketMessage.setRoomFederationWebSocketMessage(roomFederationWebSocketMessage);
|
||||||
}
|
}
|
||||||
roomOverallWebSocketMessage.setRoomWebSocketMessage(roomWebSocketMessage);
|
roomOverallWebSocketMessage.setRoomWebSocketMessage(roomWebSocketMessage);
|
||||||
|
|
Loading…
Reference in a new issue