Browse Source

fix(settings): store url display name and email.

j8
Hristo Terezov 5 years ago
parent
commit
4ded94d130
1 changed files with 11 additions and 2 deletions
  1. 11
    2
      react/features/base/settings/middleware.js

+ 11
- 2
react/features/base/settings/middleware.js View File

@@ -9,6 +9,7 @@ import { MiddlewareRegistry } from '../redux';
9 9
 import { parseURLParams } from '../util';
10 10
 
11 11
 import { SETTINGS_UPDATED } from './actionTypes';
12
+import { updateSettings } from './actions';
12 13
 import { handleCallIntegrationChange, handleCrashReportingChange } from './functions';
13 14
 
14 15
 /**
@@ -160,10 +161,18 @@ function _updateLocalParticipantFromUrl({ dispatch, getState }) {
160 161
     const localParticipant = getLocalParticipant(getState());
161 162
 
162 163
     if (localParticipant) {
164
+        const displayName = _.escape(urlDisplayName);
165
+        const email = _.escape(urlEmail);
166
+
163 167
         dispatch(participantUpdated({
164 168
             ...localParticipant,
165
-            email: _.escape(urlEmail),
166
-            name: _.escape(urlDisplayName)
169
+            email,
170
+            name: displayName
171
+        }));
172
+
173
+        dispatch(updateSettings({
174
+            displayName,
175
+            email
167 176
         }));
168 177
     }
169 178
 }

Loading…
Cancel
Save