From d34ff1c9914c621b7f5c49ce93b7600308d89046 Mon Sep 17 00:00:00 2001 From: Christopher Poile Date: Thu, 8 Dec 2022 13:42:39 -0500 Subject: [PATCH] MM-48949 - Calls: Displayname not showing correctly in call screen (#6850) --- .../calls/components/current_call_bar/current_call_bar.tsx | 2 +- app/products/calls/screens/call_screen/call_screen.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/products/calls/components/current_call_bar/current_call_bar.tsx b/app/products/calls/components/current_call_bar/current_call_bar.tsx index 693d2fff7..171468c1d 100644 --- a/app/products/calls/components/current_call_bar/current_call_bar.tsx +++ b/app/products/calls/components/current_call_bar/current_call_bar.tsx @@ -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 = () => { diff --git a/app/products/calls/screens/call_screen/call_screen.tsx b/app/products/calls/screens/call_screen/call_screen.tsx index cd694c616..6c7aadfe1 100644 --- a/app/products/calls/screens/call_screen/call_screen.tsx +++ b/app/products/calls/screens/call_screen/call_screen.tsx @@ -455,7 +455,7 @@ const CallScreen = ({ @@ -493,7 +493,7 @@ const CallScreen = ({ serverUrl={currentCall.serverUrl} /> - {displayUsername(user.userModel, teammateNameDisplay)} + {displayUsername(user.userModel, intl.locale, teammateNameDisplay)} {user.id === myParticipant.id && ` ${intl.formatMessage({id: 'mobile.calls_you', defaultMessage: '(you)'})}` }