MM-48949 - Calls: Displayname not showing correctly in call screen (#6850)

This commit is contained in:
Christopher Poile
2022-12-08 13:42:39 -05:00
committed by GitHub
parent 178eff3c96
commit d34ff1c991
2 changed files with 3 additions and 3 deletions

View File

@@ -132,7 +132,7 @@ const CurrentCallBar = ({
talkingMessage = formatMessage({
id: 'mobile.calls_name_is_talking',
defaultMessage: '{name} is talking',
}, {name: displayUsername(userModelsDict[speaker], teammateNameDisplay)});
}, {name: displayUsername(userModelsDict[speaker], intl.locale, teammateNameDisplay)});
}
const muteUnmute = () => {

View File

@@ -455,7 +455,7 @@ const CallScreen = ({
<FormattedText
id={'mobile.calls_viewing_screen'}
defaultMessage={'You are viewing {name}\'s screen'}
values={{name: displayUsername(participantsDict[currentCall.screenOn].userModel, teammateNameDisplay)}}
values={{name: displayUsername(participantsDict[currentCall.screenOn].userModel, intl.locale, teammateNameDisplay)}}
style={style.screenShareText}
/>
</Pressable>
@@ -493,7 +493,7 @@ const CallScreen = ({
serverUrl={currentCall.serverUrl}
/>
<Text style={style.username}>
{displayUsername(user.userModel, teammateNameDisplay)}
{displayUsername(user.userModel, intl.locale, teammateNameDisplay)}
{user.id === myParticipant.id &&
` ${intl.formatMessage({id: 'mobile.calls_you', defaultMessage: '(you)'})}`
}