From 05a492241f392601021fd53c04043a73df98fbcb Mon Sep 17 00:00:00 2001 From: zbettenbuk Date: Fri, 5 Jan 2018 18:23:31 +0100 Subject: [PATCH] Fix local participant details on web --- react/features/app/components/AbstractApp.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/react/features/app/components/AbstractApp.js b/react/features/app/components/AbstractApp.js index df3809e48..a7fe55999 100644 --- a/react/features/app/components/AbstractApp.js +++ b/react/features/app/components/AbstractApp.js @@ -147,10 +147,12 @@ export class AbstractApp extends Component { // Profile is the new React compatible settings. const profile = getProfile(this._getStore().getState()); - Object.assign(localParticipant, { - email: profile.email, - name: profile.displayName - }); + if (profile) { + localParticipant.email + = profile.email || localParticipant.email; + localParticipant.name + = profile.displayName || localParticipant.name; + } // We set the initialized state here and not in the contructor to // make sure that {@code componentWillMount} gets invoked before