Skip to content

Commit

Permalink
fix(federation): Allow optional calls like with lastEditActor*
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Feb 26, 2024
1 parent 7e91398 commit d576fc9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Federation/Proxy/TalkV1/UserConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ public function __construct(
}

public function convertAttendee(Room $room, array $entry, string $typeField, string $idField, string $displayNameField): array {
if (!isset($entry[$typeField])) {
return $entry;
}

if ($entry[$typeField] === Attendee::ACTOR_USERS) {
$entry[$typeField] = Attendee::ACTOR_FEDERATED_USERS;
$entry[$idField] .= '@' . $room->getRemoteServer();
Expand Down

0 comments on commit d576fc9

Please sign in to comment.