forked from Ivasoft/mattermost-mobile
MM-48949 - Calls: Displayname not showing correctly in call screen (#6850)
This commit is contained in:
committed by
GitHub
parent
178eff3c96
commit
d34ff1c991
@@ -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 = () => {
|
||||
|
||||
@@ -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)'})}`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user