diff --git a/docs/capabilities.md b/docs/capabilities.md index 22fca01ff0..7fe8e69bd8 100644 --- a/docs/capabilities.md +++ b/docs/capabilities.md @@ -59,4 +59,5 @@ title: Capabilities * `config => previews => max-gif-size` - Maximum size in bytes below which a GIF can be embedded directly in the page at render time. Bigger files will be rendered statically using the preview endpoint instead. Can be set with `occ config:app:set spreed max-gif-size --value=X` where X is the new value in bytes. Defaults to 3 MB. * `chat-read-status` - On conversation API v3 and the chat API the last common read message is exposed which can be used to update the "read status" flag of own chat messages. The info should be shown only when the user also shares their read status. The user's value can be found in `config => chat => read-privacy`. * `config => chat => read-privacy` - See `chat-read-status` +* `phonebook-search` - Is present when the server has the endpoint to search for phone numbers to find matches in the accounts list * `listable-rooms` - Conversations can searched for even when not joined. A "listable" attribute set on rooms defines the scope of who can find it. diff --git a/lib/Capabilities.php b/lib/Capabilities.php index a95bc55311..0835a5cdb8 100644 --- a/lib/Capabilities.php +++ b/lib/Capabilities.php @@ -83,6 +83,7 @@ class Capabilities implements IPublicCapability { 'force-mute', 'sip-support', 'chat-read-status', + 'phonebook-search', ], 'config' => [ 'attachments' => [ diff --git a/tests/php/CapabilitiesTest.php b/tests/php/CapabilitiesTest.php index f97fcb57ff..10146bdd3d 100644 --- a/tests/php/CapabilitiesTest.php +++ b/tests/php/CapabilitiesTest.php @@ -103,6 +103,7 @@ class CapabilitiesTest extends TestCase { 'force-mute', 'sip-support', 'chat-read-status', + 'phonebook-search', ], 'config' => [ 'attachments' => [ @@ -209,6 +210,7 @@ class CapabilitiesTest extends TestCase { 'force-mute', 'sip-support', 'chat-read-status', + 'phonebook-search', 'chat-reference-id', ], 'config' => [