Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Fix local participant details on web

zbettenbuk05a492241f39
diff --git a/react/features/app/components/AbstractApp.js b/react/features/app/components/AbstractApp.js
index df3809e48d..a7fe55999c 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