Documentation of room avatar property

Signed-off-by: Vitor Mattos <vitor@php.rio>
This commit is contained in:
Vitor Mattos 2022-11-21 11:38:15 -03:00 committed by Joas Schilling
parent ce3f2a9268
commit 8db4ddf47c
No known key found for this signature in database
GPG key ID: 74434EFE0D2E2205
2 changed files with 2 additions and 1 deletions

View file

@ -88,6 +88,7 @@
| `statusMessage` | string | v4 | | Optional: Only available for one-to-one conversations and when `includeStatus=true` is set |
| `participants` | array | v1 | v2 | **Removed** |
| `guestList` | string | v1 | v2 | **Removed** |
| `avatar` | string | v4 | | The room avatar token when exists. If the room have this value, use this as ?v={avatarToken} into room avatar URL to make possible expire the avatar when the room manager change the avatar in a period of a day. The room avatar have a cache of a day. |
## Creating a new conversation

View file

@ -417,6 +417,7 @@ class RoomController extends AEnvironmentAwareController {
'listable' => Room::LISTABLE_NONE,
'callFlag' => Participant::FLAG_DISCONNECTED,
'messageExpiration' => 0,
'avatar' => $this->avatarService->getAvatarUrl($room),
];
$lastActivity = $room->getLastActivity();
@ -485,7 +486,6 @@ class RoomController extends AEnvironmentAwareController {
'description' => $room->getDescription(),
'listable' => $room->getListable(),
'messageExpiration' => $room->getMessageExpiration(),
'avatar' => $this->avatarService->getAvatarUrl($room),
]);
if ($currentParticipant->getAttendee()->getReadPrivacy() === Participant::PRIVACY_PUBLIC) {