feat(chat): Add Open chat button to chat notifications

This commit is contained in:
Hristo Terezov
2025-09-03 10:38:32 -05:00
parent 5a54511d2c
commit f1bae8bc10
3 changed files with 8 additions and 5 deletions

View File

@@ -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);
}

View File

@@ -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));
}