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(chat): Add Open chat button to chat notifications
Hristo Terezovf1bae8bc10f6
diff --git a/lang/main.json b/lang/main.jsonindex 724d945ac2..12beef4313 100644--- a/lang/main.json+++ b/lang/main.json@@ -865,6 +865,7 @@"oldElectronClientDescription1": "You appear to be using an old version of the Jitsi Meet client which has known security vulnerabilities. Please make sure you update to our ","oldElectronClientDescription2": "latest build","oldElectronClientDescription3": " now!",+ "openChat": "Open chat","participantWantsToJoin": "Wants to join the meeting","participantsWantToJoin": "Want to join the meeting","passwordRemovedRemotely": "$t(lockRoomPasswordUppercase) removed by another participant",diff --git a/react/features/chat/actions.native.ts b/react/features/chat/actions.native.tsindex 5fcffe8779..1f70bbc0ff 100644--- a/react/features/chat/actions.native.ts+++ b/react/features/chat/actions.native.ts@@ -1,6 +1,5 @@import { IParticipant } from '../base/participants/types';-import { navigate }- from '../mobile/navigation/components/conference/ConferenceNavigationContainerRef';+import { navigate } from '../mobile/navigation/components/conference/ConferenceNavigationContainerRef';import { screen } from '../mobile/navigation/routes';import { OPEN_CHAT } from './actionTypes';@@ -18,7 +17,7 @@ export * from './actions.any';* type: OPEN_CHAT* }}*/-export function openChat(participant: IParticipant | undefined | Object, disablePolls?: boolean) {+export function openChat(participant?: IParticipant | undefined | Object, disablePolls?: boolean) {if (disablePolls) {navigate(screen.conference.chat);}diff --git a/react/features/chat/middleware.ts b/react/features/chat/middleware.tsindex dfe26a553d..345519878e 100644--- a/react/features/chat/middleware.ts+++ b/react/features/chat/middleware.ts@@ -51,8 +51,9 @@ import {clearMessages,closeChat,notifyPrivateRecipientsChanged,+ openChat,setPrivateMessageRecipient-} from './actions.any';+} from './actions';import { ChatPrivacyDialog } from './components';import {ChatTabs,@@ -633,7 +634,9 @@ function _handleReceivedMessage({ dispatch, getState }: IStore,if (shouldShowNotification) {dispatch(showMessageNotification({title: notificationDisplayName,- description: message+ description: message,+ customActionNameKey: [ 'notify.openChat' ],+ customActionHandler: [ () => dispatch(openChat()) ]}, NOTIFICATION_TIMEOUT_TYPE.MEDIUM));}