Browse Source

feat(reactions): Add ๐Ÿ‘‹ and ๐Ÿ”ฅ call reactions

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/13345/head
Joas Schilling 1 year ago
committed by Maksim Sukharev
parent
commit
22693b9c3f
  1. BIN
      img/emojis/Fire.gif
  2. BIN
      img/emojis/Wave.gif
  3. 2
      lib/Capabilities.php
  4. 2
      src/components/CallView/shared/ReactionToaster.vue
  5. 4
      tests/php/CapabilitiesTest.php

BIN
img/emojis/Fire.gif

After

Width: 64  |  Height: 64  |  Size: 37 KiB

BIN
img/emojis/Wave.gif

After

Width: 64  |  Height: 64  |  Size: 25 KiB

2
lib/Capabilities.php

@ -188,7 +188,7 @@ class Capabilities implements IPublicCapability {
'breakout-rooms' => $this->talkConfig->isBreakoutRoomsEnabled(),
'recording' => $this->talkConfig->isRecordingEnabled(),
'recording-consent' => $this->talkConfig->recordingConsentRequired(),
'supported-reactions' => ['โค๏ธ', '๐ŸŽ‰', '๐Ÿ‘', '๐Ÿ‘', '๐Ÿ‘Ž', '๐Ÿ˜‚', '๐Ÿคฉ', '๐Ÿค”', '๐Ÿ˜ฒ', '๐Ÿ˜ฅ'],
'supported-reactions' => ['โค๏ธ', '๐ŸŽ‰', '๐Ÿ‘', '๐Ÿ‘‹', '๐Ÿ‘', '๐Ÿ‘Ž', '๐Ÿ”ฅ', '๐Ÿ˜‚', '๐Ÿคฉ', '๐Ÿค”', '๐Ÿ˜ฒ', '๐Ÿ˜ฅ'],
// 'predefined-backgrounds' => list<string>,
'can-upload-background' => false,
'sip-enabled' => $this->talkConfig->isSIPConfigured(),

2
src/components/CallView/shared/ReactionToaster.vue

@ -46,8 +46,10 @@ const reactions = {
'โค๏ธ': 'Heart.gif',
'๐ŸŽ‰': 'Party.gif',
'๐Ÿ‘': 'Clap.gif',
'๐Ÿ‘‹': 'Wave.gif',
'๐Ÿ‘': 'Thumbs-up.gif',
'๐Ÿ‘Ž': 'Thumbs-down.gif',
'๐Ÿ”ฅ': 'Fire.gif',
'๐Ÿ˜‚': 'Joy.gif',
'๐Ÿคฉ': 'Star-struck.gif',
'๐Ÿค”': 'Thinking-face.gif',

4
tests/php/CapabilitiesTest.php

@ -114,7 +114,7 @@ class CapabilitiesTest extends TestCase {
'breakout-rooms' => false,
'recording' => false,
'recording-consent' => 0,
'supported-reactions' => ['โค๏ธ', '๐ŸŽ‰', '๐Ÿ‘', '๐Ÿ‘', '๐Ÿ‘Ž', '๐Ÿ˜‚', '๐Ÿคฉ', '๐Ÿค”', '๐Ÿ˜ฒ', '๐Ÿ˜ฅ'],
'supported-reactions' => ['โค๏ธ', '๐ŸŽ‰', '๐Ÿ‘', '๐Ÿ‘‹', '๐Ÿ‘', '๐Ÿ‘Ž', '๐Ÿ”ฅ', '๐Ÿ˜‚', '๐Ÿคฉ', '๐Ÿค”', '๐Ÿ˜ฒ', '๐Ÿ˜ฅ'],
'can-upload-background' => false,
'sip-enabled' => false,
'sip-dialout-enabled' => false,
@ -247,7 +247,7 @@ class CapabilitiesTest extends TestCase {
'breakout-rooms' => true,
'recording' => false,
'recording-consent' => 0,
'supported-reactions' => ['โค๏ธ', '๐ŸŽ‰', '๐Ÿ‘', '๐Ÿ‘', '๐Ÿ‘Ž', '๐Ÿ˜‚', '๐Ÿคฉ', '๐Ÿค”', '๐Ÿ˜ฒ', '๐Ÿ˜ฅ'],
'supported-reactions' => ['โค๏ธ', '๐ŸŽ‰', '๐Ÿ‘', '๐Ÿ‘‹', '๐Ÿ‘', '๐Ÿ‘Ž', '๐Ÿ”ฅ', '๐Ÿ˜‚', '๐Ÿคฉ', '๐Ÿค”', '๐Ÿ˜ฒ', '๐Ÿ˜ฅ'],
'can-upload-background' => $canUpload,
'sip-enabled' => false,
'sip-dialout-enabled' => false,

Loadingโ€ฆ
Cancel
Save