Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32943214
D7156.1768258466.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
775 B
Referenced Files
None
Subscribers
None
D7156.1768258466.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
Mon, Jan 12, 10:54 PM (17 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5921419
Default Alt Text
D7156.1768258466.diff (775 B)
Attached To
Mode
D7156: [lib] Update `CurrentUserInfo` on `updateUserAvatarActionTypes.success`
Attached
Detach File
Event Timeline
Log In to Comment