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:
linkmauve 2018-08-22 20:35:48 +01:00 committed by virtuacoplenny
parent 7267f386dc
commit c23c798f7a
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }