mirror of
https://github.com/nextcloud/spreed.git
synced 2025-12-18 05:20:50 +01:00
Documentation of room avatar property
Signed-off-by: Vitor Mattos <vitor@php.rio>
This commit is contained in:
parent
ce3f2a9268
commit
8db4ddf47c
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue