[MM-63382] Calls: Fix rendering of long user/channel name in call bar (#8804)

* Calls: Fix rendering of long user/channel name in call bar

* Fix linting
This commit is contained in:
Claudio Costa 2025-04-30 13:32:00 -06:00 committed by GitHub
parent 8453eee0e3
commit 0e67bc8944
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -193,7 +193,11 @@ const CurrentCallBar = ({
</Text>);
if (speaker) {
talkingMessage = (
<Text style={style.speakingUser}>
<Text
style={style.speakingUser}
numberOfLines={1}
ellipsizeMode='middle'
>
{displayUsername(sessionsDict[speaker].userModel, intl.locale, teammateNameDisplay)}
{' '}
<Text style={style.speakingPostfix}>{
@ -249,7 +253,11 @@ const CurrentCallBar = ({
</View>
<View style={style.text}>
{talkingMessage}
<Text style={style.channelAndTime}>
<Text
style={style.channelAndTime}
numberOfLines={1}
ellipsizeMode='middle'
>
{`~${displayName}`}
<Text style={style.separator}>{' • '}</Text>
<CallDuration