Browse Source
Add a capability
Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/7512/head
Joas Schilling
3 years ago
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
3 changed files with
3 additions and
0 deletions
-
docs/capabilities.md
-
lib/Capabilities.php
-
tests/php/CapabilitiesTest.php
|
|
@ -101,5 +101,6 @@ title: Capabilities |
|
|
|
* `sip-support-nopin` - Whether SIP can be configured to not require a custom attendee PIN |
|
|
|
* `send-call-notification` - When the API allows to resend call notifications for individual users that did not join yet |
|
|
|
* `silent-call` - Allow to start calls without sending notification |
|
|
|
* `talk-polls` - Polls feature is available to use in the chat |
|
|
|
* `config => call => enabled` - Whether calling is enabled on the instance or not |
|
|
|
* `config => signaling => session-ping-limit` - Number of sessions the HPB is allowed to ping in the same request |
|
|
@ -111,6 +111,7 @@ class Capabilities implements IPublicCapability { |
|
|
|
'silent-send', |
|
|
|
'silent-call', |
|
|
|
'send-call-notification', |
|
|
|
'talk-polls', |
|
|
|
], |
|
|
|
'config' => [ |
|
|
|
'attachments' => [ |
|
|
|
|
|
@ -121,6 +121,7 @@ class CapabilitiesTest extends TestCase { |
|
|
|
'silent-send', |
|
|
|
'silent-call', |
|
|
|
'send-call-notification', |
|
|
|
'talk-polls', |
|
|
|
'message-expiration', |
|
|
|
'reactions', |
|
|
|
]; |
|
|
|