Fix local participant details on web

This commit is contained in:
zbettenbuk 2018-01-05 18:23:31 +01:00 committed by Paweł Domas
parent 8ec4697a27
commit 05a492241f
1 changed files with 6 additions and 4 deletions

View File

@ -147,10 +147,12 @@ export class AbstractApp extends Component {
// Profile is the new React compatible settings. // Profile is the new React compatible settings.
const profile = getProfile(this._getStore().getState()); const profile = getProfile(this._getStore().getState());
Object.assign(localParticipant, { if (profile) {
email: profile.email, localParticipant.email
name: profile.displayName = profile.email || localParticipant.email;
}); localParticipant.name
= profile.displayName || localParticipant.name;
}
// We set the initialized state here and not in the contructor to // We set the initialized state here and not in the contructor to
// make sure that {@code componentWillMount} gets invoked before // make sure that {@code componentWillMount} gets invoked before