From cdfdaceb444f976b35282a53c4f68d7fe226eb1d Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 4 Jul 2022 15:04:50 +0200 Subject: [PATCH] Add a capability Signed-off-by: Joas Schilling --- docs/capabilities.md | 1 + lib/Capabilities.php | 1 + tests/php/CapabilitiesTest.php | 1 + 3 files changed, 3 insertions(+) diff --git a/docs/capabilities.md b/docs/capabilities.md index 5c29bf390b..311ffbcc1b 100644 --- a/docs/capabilities.md +++ b/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 diff --git a/lib/Capabilities.php b/lib/Capabilities.php index 6948a3b4a3..f0a84e74e1 100644 --- a/lib/Capabilities.php +++ b/lib/Capabilities.php @@ -111,6 +111,7 @@ class Capabilities implements IPublicCapability { 'silent-send', 'silent-call', 'send-call-notification', + 'talk-polls', ], 'config' => [ 'attachments' => [ diff --git a/tests/php/CapabilitiesTest.php b/tests/php/CapabilitiesTest.php index 65fbe67d27..39017081bf 100644 --- a/tests/php/CapabilitiesTest.php +++ b/tests/php/CapabilitiesTest.php @@ -121,6 +121,7 @@ class CapabilitiesTest extends TestCase { 'silent-send', 'silent-call', 'send-call-notification', + 'talk-polls', 'message-expiration', 'reactions', ];