From c23c798f7aafa9711ded0d196ebe2a46afc4e31e Mon Sep 17 00:00:00 2001 From: linkmauve Date: Wed, 22 Aug 2018 20:35:48 +0100 Subject: [PATCH] Display the correct display name in the menu (#3388) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .../features/toolbox/components/web/OverflowMenuProfileItem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/features/toolbox/components/web/OverflowMenuProfileItem.js b/react/features/toolbox/components/web/OverflowMenuProfileItem.js index c8dd462cd..3d586108c 100644 --- a/react/features/toolbox/components/web/OverflowMenuProfileItem.js +++ b/react/features/toolbox/components/web/OverflowMenuProfileItem.js @@ -67,7 +67,7 @@ class OverflowMenuProfileItem extends Component { let displayName; if (_localParticipant && _localParticipant.name) { - displayName = _localParticipant.name.split(' ')[0]; + displayName = _localParticipant.name; } else { displayName = interfaceConfig.DEFAULT_LOCAL_DISPLAY_NAME; }