diff options
author | Joas Schilling <coding@schilljs.com> | 2021-06-10 17:09:43 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-06-10 17:09:43 +0300 |
commit | f747769836eb72cdd7b913a8ab0ee8d4229a407d (patch) | |
tree | 61a43861720eb9051fa03d19ec8ad9298346b04a | |
parent | 1e8f03a6c547202f8da57b2260c3b9705260e480 (diff) |
Add voice message capability
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | docs/capabilities.md | 1 | ||||
-rw-r--r-- | lib/Capabilities.php | 1 | ||||
-rw-r--r-- | tests/php/CapabilitiesTest.php | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/docs/capabilities.md b/docs/capabilities.md index 0b1ceaa31..ee36a552a 100644 --- a/docs/capabilities.md +++ b/docs/capabilities.md @@ -76,3 +76,4 @@ title: Capabilities * `conversation-v4` - Whether conversations API v4 is available. This also means that v1, v2 and v3 are **not** available anymore. The changes on API v4 allow a user to have multiple sessions in the same conversation on different devices which is incompatible with the data structure that was used by the previous APIs. * `signaling-v3` - Whether signaling API v3 is available. This also means that v1 and v2 are **not** available anymore. The TURN and STUN server data is now returning all defined servers instead of a random one. Multiple entries for the same server are combined and using the urls array correctly now. * `geo-location-sharing` - Whether the `geo-location` rich object is defined and can be shared to the rich-object sharing endpoint. +* `voice-message-sharing` - Shared files can be flagged as voice messages and are then presented differently in the interface diff --git a/lib/Capabilities.php b/lib/Capabilities.php index ebdeb3f69..ee4190d9f 100644 --- a/lib/Capabilities.php +++ b/lib/Capabilities.php @@ -91,6 +91,7 @@ class Capabilities implements IPublicCapability { 'rich-object-sharing', 'temp-user-avatar-api', 'geo-location-sharing', + 'voice-message-sharing', 'signaling-v3', ], 'config' => [ diff --git a/tests/php/CapabilitiesTest.php b/tests/php/CapabilitiesTest.php index 5fc8741c7..347742e3f 100644 --- a/tests/php/CapabilitiesTest.php +++ b/tests/php/CapabilitiesTest.php @@ -88,6 +88,7 @@ class CapabilitiesTest extends TestCase { 'rich-object-sharing', 'temp-user-avatar-api', 'geo-location-sharing', + 'voice-message-sharing', 'signaling-v3', ]; } |