Skip to content

Commit

Permalink
Merge pull request #11694 from nextcloud/bugfix/noid/give-remote-atte…
Browse files Browse the repository at this point in the history
…ndeeid-in-room-list

fix(federation): Send the remote attendeeId so it can be found in the…
  • Loading branch information
nickvergessen authored Mar 1, 2024
2 parents 138d585 + 65d35ae commit 9d0e42f
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 9d0e42f

Please sign in to comment.