Page MenuHomePhabricator

D7156.id24035.diff
No OneTemporary

D7156.id24035.diff

diff --git a/lib/reducers/user-reducer.js b/lib/reducers/user-reducer.js
--- a/lib/reducers/user-reducer.js
+++ b/lib/reducers/user-reducer.js
@@ -14,6 +14,7 @@
logInActionTypes,
registerActionTypes,
setUserSettingsActionTypes,
+ updateUserAvatarActionTypes,
} from '../actions/user-actions.js';
import type { BaseAction } from '../types/redux-types.js';
import {
@@ -93,6 +94,15 @@
) {
return checkStateRequest.stateChanges.currentUserInfo;
}
+ } else if (
+ action.type === updateUserAvatarActionTypes.success &&
+ state &&
+ !state.anonymous
+ ) {
+ return {
+ ...state,
+ avatar: action.payload,
+ };
} else if (action.type === setUserSettingsActionTypes.success) {
if (state?.settings) {
return {

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 27, 7:20 PM (7 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2718198
Default Alt Text
D7156.id24035.diff (775 B)

Event Timeline