summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/capabilities.md2
-rw-r--r--lib/Capabilities.php1
-rw-r--r--tests/php/CapabilitiesTest.php2
3 files changed, 5 insertions, 0 deletions
diff --git a/docs/capabilities.md b/docs/capabilities.md
index ef269c1c2..4dbf2c036 100644
--- a/docs/capabilities.md
+++ b/docs/capabilities.md
@@ -118,3 +118,5 @@
* `config => chat => translations` - List of translations tuples, JSON encoded sample `{"from":"de","fromLabel":"German","to":"en","toLabel":"English"}`. Those tuples should be provided as options when translating chat messages.
* `config => call => predefined-backgrounds` - List of predefined virtual backgrounds. The files are in Talks img/ folder, accessible via the normal image path methods. The list is cached for 5 minutes.
* `config => call => can-upload-background` - Boolean flag whether the user can upload a custom virtual background (requires an account and non-zero quota). Uploads should be done to Talk/Backgrounds/ (respecting the user's attachment directory setting).
+* `config => call => supported-reactions` - A list of emojis supported as call reactions. If the list is absent or empty, clients should not show the emoji reaction option in calls.
+*
diff --git a/lib/Capabilities.php b/lib/Capabilities.php
index a7a270d12..21206a38b 100644
--- a/lib/Capabilities.php
+++ b/lib/Capabilities.php
@@ -127,6 +127,7 @@ class Capabilities implements IPublicCapability {
'enabled' => ((int) $this->serverConfig->getAppValue('spreed', 'start_calls', (string) Room::START_CALL_EVERYONE)) !== Room::START_CALL_NOONE,
'breakout-rooms' => $this->talkConfig->isBreakoutRoomsEnabled(),
'recording' => $this->talkConfig->isRecordingEnabled(),
+ 'supported-reactions' => ['❤️', '🎉', '👏', '👍', '👎', '😂', '🤩', '🤔', '😲', '😥'],
],
'chat' => [
'max-length' => ChatManager::MAX_CHAT_LENGTH,
diff --git a/tests/php/CapabilitiesTest.php b/tests/php/CapabilitiesTest.php
index ebff099bb..ef3896596 100644
--- a/tests/php/CapabilitiesTest.php
+++ b/tests/php/CapabilitiesTest.php
@@ -185,6 +185,7 @@ class CapabilitiesTest extends TestCase {
'enabled' => true,
'breakout-rooms' => false,
'recording' => false,
+ 'supported-reactions' => ['❤️', '🎉', '👏', '👍', '👎', '😂', '🤩', '🤔', '😲', '😥'],
'predefined-backgrounds' => [
'1.jpg',
'2.jpg',
@@ -305,6 +306,7 @@ class CapabilitiesTest extends TestCase {
'enabled' => false,
'breakout-rooms' => true,
'recording' => false,
+ 'supported-reactions' => ['❤️', '🎉', '👏', '👍', '👎', '😂', '🤩', '🤔', '😲', '😥'],
'predefined-backgrounds' => [
'1.jpg',
'2.jpg',