Browse Source

Add a capability

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/7512/head
Joas Schilling 3 years ago
parent
commit
cdfdaceb44
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

@ -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

1
lib/Capabilities.php

@ -111,6 +111,7 @@ class Capabilities implements IPublicCapability {
'silent-send',
'silent-call',
'send-call-notification',
'talk-polls',
],
'config' => [
'attachments' => [

1
tests/php/CapabilitiesTest.php

@ -121,6 +121,7 @@ class CapabilitiesTest extends TestCase {
'silent-send',
'silent-call',
'send-call-notification',
'talk-polls',
'message-expiration',
'reactions',
];

Loading…
Cancel
Save