Skip to content

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

dep(@react-navigation): fixes related to v7

Calinteodor470c1fbd6bff
diff --git a/react/features/mobile/navigation/components/chat/components/ChatNavigator.tsx b/react/features/mobile/navigation/components/chat/components/ChatNavigator.tsx
index 0fcaacd931..f7d36d4712 100644
--- a/react/features/mobile/navigation/components/chat/components/ChatNavigator.tsx
+++ b/react/features/mobile/navigation/components/chat/components/ChatNavigator.tsx
@@ -68,7 +68,7 @@ const ChatNavigator = () => {
listeners = {{
tabPress: () => {
dispatch(setFocusedTab(ChatTabs.POLLS));
- dispatch(resetUnreadPollsCount);
+ dispatch(resetUnreadPollsCount());
}
}}
name = { screen.conference.chatTabs.tab.polls } />
diff --git a/react/features/mobile/navigation/functions.tsx b/react/features/mobile/navigation/functions.tsx
index fe3d4e621a..da5ee9a236 100644
--- a/react/features/mobile/navigation/functions.tsx
+++ b/react/features/mobile/navigation/functions.tsx
@@ -41,5 +41,6 @@ export function isPrejoinPageEnabled(stateful: IStateful) {
* @returns {React.Component}
*/
export function lobbyScreenHeaderCloseButton() {
- return LobbyCloseButton;
+ // eslint-disable-next-line react/no-multi-comp
+ return () => <LobbyCloseButton />;
}
diff --git a/react/features/settings/components/native/ProfileView.tsx b/react/features/settings/components/native/ProfileView.tsx
index 08fa40c835..8d190dc266 100644
--- a/react/features/settings/components/native/ProfileView.tsx
+++ b/react/features/settings/components/native/ProfileView.tsx
@@ -41,6 +41,7 @@ const ProfileView = ({ isInWelcomePage }: {
);
const participant = useSelector((state: IReduxState) => getLocalParticipant(state));
const { locationURL } = useSelector((state: IReduxState) => state['features/base/connection']);
+ const showAuthButton = !isInWelcomePage && !locationURL?.hostname?.includes('8x8.vc');
const [ displayName, setDisplayName ] = useState(reduxDisplayName);
const [ email, setEmail ] = useState(reduxEmail);
@@ -105,9 +106,7 @@ const ProfileView = ({ isInWelcomePage }: {
useLayoutEffect(() => {
navigation.setOptions({
headerLeft,
- headerRight: !isInWelcomePage
- && !locationURL?.hostname?.includes('8x8.vc')
- && headerRight
+ headerRight: showAuthButton ? headerRight : undefined
});
}, [ navigation ]);