fix(rn,chat): Fix chat and polls title
This commit is contained in:
parent
0fb29a0c7a
commit
bfc0567e32
|
@ -38,14 +38,19 @@ const ConferenceStack = createStackNavigator();
|
||||||
|
|
||||||
const ConferenceNavigationContainer = () => {
|
const ConferenceNavigationContainer = () => {
|
||||||
const isPollsDisabled = useSelector(getDisablePolls);
|
const isPollsDisabled = useSelector(getDisablePolls);
|
||||||
const ChatScreen
|
let ChatScreen;
|
||||||
= isPollsDisabled
|
let chatScreenName;
|
||||||
? Chat
|
let chatTitleString;
|
||||||
: ChatAndPolls;
|
|
||||||
const chatScreenName
|
if (isPollsDisabled) {
|
||||||
= isPollsDisabled
|
ChatScreen = Chat;
|
||||||
? screen.conference.chat
|
chatScreenName = screen.conference.chat;
|
||||||
: screen.conference.chatandpolls.main;
|
chatTitleString = 'chat.title';
|
||||||
|
} else {
|
||||||
|
ChatScreen = ChatAndPolls;
|
||||||
|
chatScreenName = screen.conference.chatandpolls.main;
|
||||||
|
chatTitleString = 'chat.titleWithPolls';
|
||||||
|
}
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -66,7 +71,7 @@ const ConferenceNavigationContainer = () => {
|
||||||
name = { chatScreenName }
|
name = { chatScreenName }
|
||||||
options = {{
|
options = {{
|
||||||
...chatScreenOptions,
|
...chatScreenOptions,
|
||||||
title: t('chat.title')
|
title: t(chatTitleString)
|
||||||
}} />
|
}} />
|
||||||
<ConferenceStack.Screen
|
<ConferenceStack.Screen
|
||||||
component = { ParticipantsPane }
|
component = { ParticipantsPane }
|
||||||
|
|
Loading…
Reference in New Issue