瀏覽代碼

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

master
Hristo Terezov 5 年之前
父節點
當前提交
4ded94d130
共有 1 個檔案被更改,包括 11 行新增2 行删除
  1. 11
    2
      react/features/base/settings/middleware.js

+ 11
- 2
react/features/base/settings/middleware.js 查看文件

9
 import { parseURLParams } from '../util';
9
 import { parseURLParams } from '../util';
10
 
10
 
11
 import { SETTINGS_UPDATED } from './actionTypes';
11
 import { SETTINGS_UPDATED } from './actionTypes';
12
+import { updateSettings } from './actions';
12
 import { handleCallIntegrationChange, handleCrashReportingChange } from './functions';
13
 import { handleCallIntegrationChange, handleCrashReportingChange } from './functions';
13
 
14
 
14
 /**
15
 /**
160
     const localParticipant = getLocalParticipant(getState());
161
     const localParticipant = getLocalParticipant(getState());
161
 
162
 
162
     if (localParticipant) {
163
     if (localParticipant) {
164
+        const displayName = _.escape(urlDisplayName);
165
+        const email = _.escape(urlEmail);
166
+
163
         dispatch(participantUpdated({
167
         dispatch(participantUpdated({
164
             ...localParticipant,
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…
取消
儲存