Skip to content

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

Add the ability to do partial updates on the flatten profile object

zbettenbuk1474304cc5a1
diff --git a/react/features/base/profile/reducer.js b/react/features/base/profile/reducer.js
index c130134240..e65e07fafc 100644
--- a/react/features/base/profile/reducer.js
+++ b/react/features/base/profile/reducer.js
@@ -16,7 +16,10 @@ ReducerRegistry.register(
STORE_NAME, (state = {}, action) => {
switch (action.type) {
case PROFILE_UPDATED:
- return action.profile;
+ return {
+ ...state,
+ ...action.profile
+ };
}
return state;
diff --git a/react/features/settings/components/AbstractSettingsView.js b/react/features/settings/components/AbstractSettingsView.js
index 8bfdabd89a..4a9d9dd44e 100644
--- a/react/features/settings/components/AbstractSettingsView.js
+++ b/react/features/settings/components/AbstractSettingsView.js
@@ -150,10 +150,7 @@ export class AbstractSettingsView extends Component<Props> {
* @returns {void}
*/
_updateProfile(updateObject: Object) {
- this.props.dispatch(updateProfile({
- ...this.props._profile,
- ...updateObject
- }));
+ this.props.dispatch(updateProfile(updateObject));
}
}