Browse Source

Add a capability for conversation permissions

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/6864/head
Joas Schilling 4 years ago
parent
commit
5bf403c5ec
No known key found for this signature in database GPG Key ID: 7076EA9751AACDDA
  1. 1
      docs/capabilities.md
  2. 1
      lib/Capabilities.php
  3. 1
      tests/php/CapabilitiesTest.php

1
docs/capabilities.md

@ -85,6 +85,7 @@ title: Capabilities
## 13
* `direct-mention-flag` - The conversation list populates the boolean `unreadMentionDirect` when the user was mentioned directly (ignoring @all mentions) since their last visit
* `notification-calls` - Whether the API to opt out of call notifications is available
* `conversation-permissions` - Whether the default and custom permissions can be set for attendees.
## 14
* `chat-unread` - Whether the API to mark a conversation as unread is available

1
lib/Capabilities.php

@ -98,6 +98,7 @@ class Capabilities implements IPublicCapability {
'clear-history',
'direct-mention-flag',
'notification-calls',
'conversation-permissions',
],
'config' => [
'attachments' => [

1
tests/php/CapabilitiesTest.php

@ -95,6 +95,7 @@ class CapabilitiesTest extends TestCase {
'clear-history',
'direct-mention-flag',
'notification-calls',
'conversation-permissions',
];
}

Loading…
Cancel
Save