ソースを参照

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

j8
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
 }

読み込み中…
キャンセル
保存