Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(reactions): Added heart reaction
Sam Joe Chalissery71de1d1e2dd8
diff --git a/css/_reactions-menu.scss b/css/_reactions-menu.scssindex 99d7450f1a..ac2817f452 100644--- a/css/_reactions-menu.scss+++ b/css/_reactions-menu.scss@@ -1,14 +1,14 @@@use 'sass:math';.reactions-menu {- width: 280px;+ width: 330px;background: #242528;box-shadow: 0px 3px 16px rgba(0, 0, 0, 0.6), 0px 0px 4px 1px rgba(0, 0, 0, 0.25);border-radius: 6px;padding: 16px;&.with-gif {- width: 328px;+ width: 380px;.reactions-row .toolbox-button:last-of-type {top: 3px;diff --git a/lang/main.json b/lang/main.jsonindex e7db6dd7a0..a6d29e0e02 100644--- a/lang/main.json+++ b/lang/main.json@@ -1246,6 +1246,7 @@"lobbyButton": "Enable/disable lobby mode","localRecording": "Toggle local recording controls","lockRoom": "Toggle meeting password",+ "love": "Heart","lowerHand": "Lower your hand","moreActions": "More actions","moreActionsMenu": "More actions menu",@@ -1335,6 +1336,7 @@"lobbyButtonEnable": "Enable lobby mode","login": "Log-in","logout": "Log-out",+ "love": "Heart","lowerYourHand": "Lower your hand","moreActions": "More actions","moreOptions": "More options",@@ -1360,6 +1362,7 @@"raiseYourHand": "Raise your hand","reactionBoo": "Send boo reaction","reactionClap": "Send clap reaction",+ "reactionHeart": "Send heart reaction","reactionLaugh": "Send laugh reaction","reactionLike": "Send thumbs up reaction","reactionSilence": "Send silence reaction",diff --git a/react/features/reactions/constants.ts b/react/features/reactions/constants.tsindex ca1d28c729..e968556863 100644--- a/react/features/reactions/constants.ts+++ b/react/features/reactions/constants.ts@@ -1,6 +1,7 @@import {BOO_SOUND_FILES,CLAP_SOUND_FILES,+ HEART_SOUND_FILES,LAUGH_SOUND_FILES,LIKE_SOUND_FILES,SILENCE_SOUND_FILES,@@ -92,6 +93,14 @@ export const SURPRISE_SOUND_ID = `${REACTION_SOUND}_SURPRISE_`;*/export const SILENCE_SOUND_ID = `${REACTION_SOUND}_SILENCE_`;+/**+ * The audio ID of the audio element for which the {@link playAudio} action is+ * triggered when a new raise hand event is received.+ *+ * @type {string}+ */+export const HEART_SOUND_ID = `${REACTION_SOUND}_HEART_`;+/*** The audio ID of the audio element for which the {@link playAudio} action is* triggered when a new raise hand event is received.@@ -167,6 +176,13 @@ export const REACTIONS: IReactions = {shortcutChar: 'S',soundId: SILENCE_SOUND_ID,soundFiles: SILENCE_SOUND_FILES+ },+ love: {+ message: ':heart:',+ emoji: '💖',+ shortcutChar: 'H',+ soundId: HEART_SOUND_ID,+ soundFiles: HEART_SOUND_FILES}};diff --git a/react/features/reactions/sounds.ts b/react/features/reactions/sounds.tsindex d064c2d15e..9d0a293d89 100644--- a/react/features/reactions/sounds.ts+++ b/react/features/reactions/sounds.ts@@ -40,6 +40,13 @@ export const SURPRISE_SOUND_FILES = new Array(3).fill('reactions-surprise.mp3');*/export const SILENCE_SOUND_FILES = new Array(3).fill('reactions-crickets.mp3');+/**+ * The name of the bundled audio file which will be played for the heart reaction sound.+ *+ * @type {Array<string>}+ */+export const HEART_SOUND_FILES = new Array(3).fill('reactions-love.mp3');+/*** The name of the bundled audio file which will be played for the raise hand sound.*diff --git a/sounds/reactions-love.mp3 b/sounds/reactions-love.mp3new file mode 100644index 0000000000..716c967104Binary files /dev/null and b/sounds/reactions-love.mp3 differdiff --git a/sounds/reactions-love.opus b/sounds/reactions-love.opusnew file mode 100644index 0000000000..fedfcd41c3Binary files /dev/null and b/sounds/reactions-love.opus differ