mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 03:12:29 +00:00
feat(chat): Add Open chat button to chat notifications
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user