зеркало из https://github.com/nextcloud/spreed.git
Add new capability
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Родитель
7c325c6936
Коммит
4a2f85131f
|
@ -91,3 +91,4 @@ title: Capabilities
|
|||
* `chat-unread` - Whether the API to mark a conversation as unread is available
|
||||
* `reactions` - Api reactions to chat message
|
||||
* `rich-object-list-media` - When the API to get the chat messages for shared media is available
|
||||
* `rich-object-delete` - When the API allows to delete chat messages which are file or rich object shares
|
||||
|
|
|
@ -208,7 +208,7 @@ See [OCP\RichObjectStrings\Definitions](https://github.com/nextcloud/server/blob
|
|||
|
||||
## Deleting a chat message
|
||||
|
||||
* Required capability: `delete-messages`
|
||||
* Required capability: `delete-messages` - `rich-object-delete` indicates if shared objects can be deleted from the chat
|
||||
* Method: `DELETE`
|
||||
* Endpoint: `/chat/{token}/{messageId}`
|
||||
|
||||
|
|
|
@ -105,6 +105,7 @@ class Capabilities implements IPublicCapability {
|
|||
'notification-calls',
|
||||
'conversation-permissions',
|
||||
'rich-object-list-media',
|
||||
'rich-object-delete',
|
||||
],
|
||||
'config' => [
|
||||
'attachments' => [
|
||||
|
|
|
@ -104,6 +104,7 @@ class CapabilitiesTest extends TestCase {
|
|||
'notification-calls',
|
||||
'conversation-permissions',
|
||||
'rich-object-list-media',
|
||||
'rich-object-delete',
|
||||
'reactions',
|
||||
];
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче