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
fix(chat/native) we need to dispatch close and open chat
Calin Chitufb6f38800bd7
diff --git a/react/features/chat/components/native/Chat.js b/react/features/chat/components/native/Chat.jsindex ef7d71a07a..c3b2affd1b 100644--- a/react/features/chat/components/native/Chat.js+++ b/react/features/chat/components/native/Chat.js@@ -6,6 +6,7 @@ import React, { useEffect } from 'react';import { translate } from '../../../base/i18n';import JitsiScreen from '../../../base/modal/components/JitsiScreen';import { connect } from '../../../base/redux';+import { closeChat } from '../../actions.any';import AbstractChat, {_mapStateToProps,type Props as AbstractProps@@ -81,6 +82,8 @@ export default translate(connect(_mapStateToProps)(props => {navigation.setOptions({tabBarLabel: `${t('chat.tabs.chat')} ${nrUnreadMessages}`});++ return () => props.dispatch(closeChat());}, [ nrUnreadMessages ]);return (diff --git a/react/features/chat/components/native/PrivateMessageButton.js b/react/features/chat/components/native/PrivateMessageButton.jsindex b639fbf26a..49166b8ab4 100644--- a/react/features/chat/components/native/PrivateMessageButton.js+++ b/react/features/chat/components/native/PrivateMessageButton.js@@ -6,10 +6,11 @@ import { IconMessage, IconReply } from '../../../base/icons';import { getParticipantById } from '../../../base/participants';import { connect } from '../../../base/redux';import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';-import { handleLobbyChatInitialized } from '../../../chat/actions.any';+import { handleLobbyChatInitialized, openChat } from '../../../chat/actions';import { navigate } from '../../../mobile/navigation/components/conference/ConferenceNavigationContainerRef';import { screen } from '../../../mobile/navigation/routes';+export type Props = AbstractButtonProps & {/**@@ -68,6 +69,8 @@ class PrivateMessageButton extends AbstractButton<Props, any> {this.props.dispatch(handleLobbyChatInitialized(this.props.participantID));}+ this.props.dispatch(openChat(this.props._participant));+this.props._isPollsDisabled? navigate(screen.conference.chat, {privateMessageRecipient: this.props._participant