diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2023-05-04 10:35:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-04 10:35:11 +0200 |
commit | 31082f955381c3ce7b551f69f149be00a3c3748f (patch) | |
tree | 866c59fc89c9f64ca8b5e192ad62216f50e2280a /docs | |
parent | 6a39316274b3dab5cda025f054000da634d79920 (diff) | |
parent | 602ff9625547118a6963b132e08e42c030a8a5bc (diff) |
Merge pull request #9423 from nextcloud/bugfix/9320/expose-if-is-custom-avatar
Expose if the room has a custom avatar
Diffstat (limited to 'docs')
-rw-r--r-- | docs/avatar.md | 4 | ||||
-rw-r--r-- | docs/conversation.md | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/docs/avatar.md b/docs/avatar.md index bfeb9e63d..891cbe717 100644 --- a/docs/avatar.md +++ b/docs/avatar.md @@ -24,6 +24,10 @@ ## Delete conversations avatar +!!! note + To determine if the delete option should be presented to the user, it's recommended to check the `isCustomAvatar` property of the [Get userĀ“s conversations](conversation.md#get-user-s-conversations) API. + + * Required capability: `avatar` * Method: `DELETE` * Endpoint: `/room/{token}/avatar` diff --git a/docs/conversation.md b/docs/conversation.md index 61369ae62..3bfdf3dcb 100644 --- a/docs/conversation.md +++ b/docs/conversation.md @@ -103,7 +103,8 @@ | `statusClearAt` | ?int | v4 | | Optional: Only available for one-to-one conversations, when `includeStatus=true` is set and the user has a status, can still be null even with a status | | `participants` | array | v1 | v2 | **Removed** | | `guestList` | string | v1 | v2 | **Removed** | -| `avatarVersion` | string | v4 | | Version of conversation avatar used to easier expiration of the avatar in case a moderator updates it, since the avatar endpoint should be cached for 24 hours. | +| `avatarVersion` | string | v4 | | Version of conversation avatar used to easier expiration of the avatar in case a moderator updates it, since the avatar endpoint should be cached for 24 hours. (only available with `avatar` capability) | +| `isCustomAvatar` | bool | v4 | | Flag if the conversation has a custom avatar (only available with `avatar` capability) | | `callStartTime` | int | v4 | | Timestamp when the call was started (only available with `recording-v1` capability) | | `callRecording` | int | v4 | | Type of call recording (see [Constants - Call recording status](constants.md#call-recording-status)) (only available with `recording-v1` capability) | |