Browse Source
Expose the remote credentials
Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/7514/head
Joas Schilling
3 years ago
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
1 changed files with
6 additions and
0 deletions
-
lib/Service/RoomFormatter.php
|
|
|
@ -327,6 +327,12 @@ class RoomFormatter { |
|
|
|
$roomData['lastReadMessage'] = $attendee->getLastReadMessage(); |
|
|
|
} |
|
|
|
|
|
|
|
if ($room->getRemoteServer() && $room->getRemoteToken()) { |
|
|
|
$roomData['remoteServer'] = $room->getRemoteServer(); |
|
|
|
$roomData['remoteToken'] = $room->getRemoteToken(); |
|
|
|
$roomData['remoteAccessToken'] = $attendee->getAccessToken(); |
|
|
|
} |
|
|
|
|
|
|
|
// FIXME This should not be done, but currently all the clients use it to get the avatar of the user …
|
|
|
|
if ($room->getType() === Room::TYPE_ONE_TO_ONE) { |
|
|
|
$participants = json_decode($room->getName(), true); |
|
|
|
|