Display the correct display name in the menu (#3388)
The current code was splitting it on a space, which made nicknames such as “Link Mauve” appear as “Link”, whereas it gets displayed correctly everywhere else in the UI.
This commit is contained in:
parent
7267f386dc
commit
c23c798f7a
|
@ -67,7 +67,7 @@ class OverflowMenuProfileItem extends Component {
|
||||||
let displayName;
|
let displayName;
|
||||||
|
|
||||||
if (_localParticipant && _localParticipant.name) {
|
if (_localParticipant && _localParticipant.name) {
|
||||||
displayName = _localParticipant.name.split(' ')[0];
|
displayName = _localParticipant.name;
|
||||||
} else {
|
} else {
|
||||||
displayName = interfaceConfig.DEFAULT_LOCAL_DISPLAY_NAME;
|
displayName = interfaceConfig.DEFAULT_LOCAL_DISPLAY_NAME;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue