Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3177347
D9799.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
777 B
Referenced Files
None
Subscribers
None
D9799.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
@@ -298,7 +298,17 @@
const newUserInfos = _keyBy(userInfo => userInfo.id)(
action.payload.updates.userInfos,
);
- const updated = { ...state.userInfos, ...newUserInfos };
+ const processedUserInfos: UserInfos = processUserStoreOps(
+ state.userInfos,
+ convertUserInfosToReplaceUserOps(newUserInfos),
+ );
+ const updated: UserInfos = { ...state.userInfos, ...newUserInfos };
+ assertUserStoresAreEqual(
+ processedUserInfos,
+ updated,
+ action.type,
+ onStateDifference,
+ );
const newState = !_isEqual(state.userInfos)(updated)
? {
...state,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 8, 11:09 PM (21 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2446711
Default Alt Text
D9799.diff (777 B)
Attached To
Mode
D9799: [lib] refactor update avatar action in `UserStore` to ops
Attached
Detach File
Event Timeline
Log In to Comment