Skip to content

Commit

Permalink
fix(federation): Send the remote attendeeId so it can be found in the…
Browse files Browse the repository at this point in the history
… participant list

Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Mar 1, 2024
1 parent a6c53e4 commit 65d35ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Federation/FederationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public function acceptRemoteRoomShare(IUser $user, int $shareId): Participant {
'actorId' => $user->getUID(),
'displayName' => $user->getDisplayName(),
'accessToken' => $invitation->getAccessToken(),
'remoteId' => $invitation->getRemoteAttendeeId(), // FIXME this seems unnecessary
'remoteId' => $invitation->getRemoteAttendeeId(),
'invitedCloudId' => $invitation->getLocalCloudId(),
]
];
Expand Down
4 changes: 4 additions & 0 deletions lib/Service/RoomFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,10 @@ public function formatRoomV4(
}
}

if ($room->getRemoteServer() !== '') {
$roomData['attendeeId'] = (int) $attendee->getRemoteId();
}

return $roomData;
}

Expand Down

0 comments on commit 65d35ae

Please sign in to comment.