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:
Daniel Calviño Sánchez 2024-09-13 12:55:50 +02:00 committed by Marcel Hibbe
parent c7af117f4e
commit 148dedbc6c
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B

View file

@ -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);