Skip to content

Commit

Permalink
fix(federation): Fix conversation avatar for @all
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Mar 8, 2024
1 parent 2303fdb commit 06bcf8e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Federation/Proxy/TalkV1/UserConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
use OCA\Talk\Model\Attendee;
use OCA\Talk\ResponseDefinitions;
use OCA\Talk\Room;
use OCA\Talk\Service\AvatarService;
use OCA\Talk\Service\ParticipantService;

/**
Expand All @@ -42,6 +43,7 @@ class UserConverter {

public function __construct(
protected ParticipantService $participantService,
protected AvatarService $avatarService,
) {
}

Expand Down Expand Up @@ -105,6 +107,9 @@ protected function convertMessageParameter(Room $room, array $parameter): array
$parameter['name'] = $localParticipants[$cloudId]['displayName'];
}
}
} elseif ($parameter['type'] === 'call' && $parameter['id'] === $room->getRemoteToken()) {
$parameter['id'] = $room->getToken();
$parameter['icon-url'] = $this->avatarService->getAvatarUrl($room);
}
return $parameter;
}
Expand Down

0 comments on commit 06bcf8e

Please sign in to comment.