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(settings): store url display name and email.

Hristo Terezov4ded94d130e1
diff --git a/react/features/base/settings/middleware.js b/react/features/base/settings/middleware.js
index 09b1ca4286..6d40e78d23 100644
--- a/react/features/base/settings/middleware.js
+++ b/react/features/base/settings/middleware.js
@@ -9,6 +9,7 @@ import { MiddlewareRegistry } from '../redux';
import { parseURLParams } from '../util';
import { SETTINGS_UPDATED } from './actionTypes';
+import { updateSettings } from './actions';
import { handleCallIntegrationChange, handleCrashReportingChange } from './functions';
/**
@@ -160,10 +161,18 @@ function _updateLocalParticipantFromUrl({ dispatch, getState }) {
const localParticipant = getLocalParticipant(getState());
if (localParticipant) {
+ const displayName = _.escape(urlDisplayName);
+ const email = _.escape(urlEmail);
+
dispatch(participantUpdated({
...localParticipant,
- email: _.escape(urlEmail),
- name: _.escape(urlDisplayName)
+ email,
+ name: displayName
+ }));
+
+ dispatch(updateSettings({
+ displayName,
+ email
}));
}
}