Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3551431
D7156.id24035.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
775 B
Referenced Files
None
Subscribers
None
D7156.id24035.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D7156: [lib] Update `CurrentUserInfo` on `updateUserAvatarActionTypes.success`
Attached
Detach File
Event Timeline
Log In to Comment