Fix local participant details on web
This commit is contained in:
parent
8ec4697a27
commit
05a492241f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue