Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(reactions) Updated list of reactions & disabled incoming message sound (#9550)

robertpin1223c63f690f
diff --git a/lang/main.json b/lang/main.json
index 9ed0574ec6..758ea389e5 100644
--- a/lang/main.json
+++ b/lang/main.json
@@ -805,6 +805,7 @@
"accessibilityLabel": {
"audioOnly": "Toggle audio only",
"audioRoute": "Select the sound device",
+ "boo": "Boo",
"callQuality": "Manage video quality",
"cc": "Toggle subtitles",
"chat": "Open / Close chat",
@@ -818,7 +819,7 @@
"hangup": "Leave the meeting",
"help": "Help",
"invite": "Invite people",
- "joy": "Laughing Crying",
+ "joy": "Laugh",
"kick": "Kick participant",
"like": "Thumbs Up",
"lobbyButton": "Enable/disable lobby mode",
@@ -850,7 +851,6 @@
"shareYourScreen": "Start / Stop sharing your screen",
"shortcuts": "Toggle shortcuts",
"show": "Show on stage",
- "smile": "Smile",
"speakerStats": "Toggle speaker statistics",
"surprised": "Surprised",
"tileView": "Toggle tile view",
@@ -869,6 +869,7 @@
"audioOnlyOn": "Enable low bandwidth mode",
"audioRoute": "Select the sound device",
"authenticate": "Authenticate",
+ "boo": "Boo",
"callQuality": "Manage video quality",
"chat": "Open / Close chat",
"clap": "Clap",
@@ -887,7 +888,7 @@
"hangup": "Leave the meeting",
"help": "Help",
"invite": "Invite people",
- "joy": "Joy",
+ "joy": "Laugh",
"like": "Thumbs Up",
"lobbyButtonDisable": "Disable lobby mode",
"lobbyButtonEnable": "Enable lobby mode",
@@ -915,11 +916,11 @@
"profile": "Edit your profile",
"raiseHand": "Raise / Lower your hand",
"raiseYourHand": "Raise your hand",
+ "reactionBoo": "Send boo reaction",
"reactionClap": "Send clap reaction",
- "reactionJoy": "Send joy reaction",
+ "reactionJoy": "Send laugh reaction",
"reactionLike": "Send thumbs up reaction",
"reactionParty": "Send party popper reaction",
- "reactionSmile": "Send smile reaction",
"reactionSurprised": "Send surprised reaction",
"security": "Security options",
"Settings": "Settings",
@@ -927,7 +928,6 @@
"sharedvideo": "Share video",
"shareRoom": "Invite someone",
"shortcuts": "View shortcuts",
- "smile": "Smile",
"speakerStats": "Speaker stats",
"startScreenSharing": "Start screen sharing",
"startSubtitles": "Start subtitles",
diff --git a/react/features/chat/middleware.js b/react/features/chat/middleware.js
index 1eff622d0e..a50e36039b 100644
--- a/react/features/chat/middleware.js
+++ b/react/features/chat/middleware.js
@@ -164,7 +164,7 @@ MiddlewareRegistry.register(store => next => action => {
message: action.message,
privateMessage: false,
timestamp: Date.now()
- });
+ }, false);
}
}
@@ -273,7 +273,7 @@ function _addChatMsgListener(conference, store) {
message: reactions[_id].message,
privateMessage: false,
timestamp: eventData.timestamp
- });
+ }, false);
delete reactions[_id];
}, 500);
}
@@ -308,14 +308,18 @@ function _handleChatError({ dispatch }, error) {
*
* @param {Store} store - The Redux store.
* @param {Object} message - The message object.
+ * @param {boolean} shouldPlaySound - Whether or not to play the incoming message sound.
* @returns {void}
*/
-function _handleReceivedMessage({ dispatch, getState }, { id, message, privateMessage, timestamp }) {
+function _handleReceivedMessage({ dispatch, getState },
+ { id, message, privateMessage, timestamp },
+ shouldPlaySound = true
+) {
// Logic for all platforms:
const state = getState();
const { isOpen: isChatOpen } = state['features/chat'];
- if (!isChatOpen) {
+ if (shouldPlaySound && !isChatOpen) {
dispatch(playSound(INCOMING_MSG_SOUND_ID));
}
diff --git a/react/features/reactions/constants.js b/react/features/reactions/constants.js
index 8708b2b8a1..160f600aeb 100644
--- a/react/features/reactions/constants.js
+++ b/react/features/reactions/constants.js
@@ -1,24 +1,19 @@
// @flow
export const REACTIONS = {
- clap: {
- message: ':clap:',
- emoji: '๐Ÿ‘',
- shortcutChar: 'C'
- },
like: {
message: ':thumbs_up:',
emoji: '๐Ÿ‘',
shortcutChar: 'T'
},
- smile: {
- message: ':smile:',
- emoji: '๐Ÿ˜€',
- shortcutChar: 'S'
+ clap: {
+ message: ':clap:',
+ emoji: '๐Ÿ‘',
+ shortcutChar: 'C'
},
joy: {
- message: ':joy:',
- emoji: '๐Ÿ˜‚',
+ message: ':grinning_face:',
+ emoji: '๐Ÿ˜€',
shortcutChar: 'L'
},
surprised: {
@@ -26,6 +21,11 @@ export const REACTIONS = {
emoji: '๐Ÿ˜ฎ',
shortcutChar: 'O'
},
+ boo: {
+ message: ':slightly_frowning_face:',
+ emoji: '๐Ÿ™',
+ shortcutChar: 'B'
+ },
party: {
message: ':party_popper:',
emoji: '๐ŸŽ‰',