diff options
author | Joas Schilling <coding@schilljs.com> | 2021-05-10 11:25:23 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-05-10 11:25:23 +0300 |
commit | 5548a5ebc70f1161f673f0a264d4841d7ad707e6 (patch) | |
tree | 485cba2b6854673d44b77e1f27391343194b8c0a | |
parent | 43cb039617c33b1e1640462a450b62f7de3980ef (diff) |
Add geo-location-sharing 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 e3cf472d0..3f435f667 100644 --- a/docs/capabilities.md +++ b/docs/capabilities.md @@ -72,3 +72,4 @@ title: Capabilities ## 12.0 * `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. +* `geo-location-sharing` - Whether the `geo-location` rich object is defined and can be shared to the rich-object sharing endpoint diff --git a/lib/Capabilities.php b/lib/Capabilities.php index f1042e515..8d1f736be 100644 --- a/lib/Capabilities.php +++ b/lib/Capabilities.php @@ -90,6 +90,7 @@ class Capabilities implements IPublicCapability { 'room-description', 'rich-object-sharing', 'temp-user-avatar-api', + 'geo-location-sharing', ], 'config' => [ 'attachments' => [ diff --git a/tests/php/CapabilitiesTest.php b/tests/php/CapabilitiesTest.php index ce31f0377..2381b4e42 100644 --- a/tests/php/CapabilitiesTest.php +++ b/tests/php/CapabilitiesTest.php @@ -87,6 +87,7 @@ class CapabilitiesTest extends TestCase { 'room-description', 'rich-object-sharing', 'temp-user-avatar-api', + 'geo-location-sharing', ]; } |