Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added heart reaction feature #15291

Merged
merged 5 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lang/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
16 changes: 16 additions & 0 deletions react/features/reactions/constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
BOO_SOUND_FILES,
CLAP_SOUND_FILES,
HEART_SOUND_FILES,
LAUGH_SOUND_FILES,
LIKE_SOUND_FILES,
SILENCE_SOUND_FILES,
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
}
};

Expand Down
7 changes: 7 additions & 0 deletions react/features/reactions/sounds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
Binary file added sounds/reactions-love.mp3
Binary file not shown.
Binary file added sounds/reactions-love.opus
Binary file not shown.