Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3299847
D12513.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
815 B
Referenced Files
None
Subscribers
None
D12513.id.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
@@ -545,12 +545,16 @@
return [state, [], []];
}
- const userStoreOps: UserStoreOperation[] = [];
- if (userInfos) {
- for (const userInfo of userInfos) {
- userStoreOps.push({ type: 'replace_user', payload: { ...userInfo } });
- }
- }
+ const keyserverUserInfos = _keyBy(userInfo => userInfo.id)(userInfos);
+ const newUserInfos = discardKeyserverUsernames(
+ keyserverUserInfos,
+ state.userInfos,
+ );
+
+ const userStoreOps: UserStoreOperation[] = [
+ ...convertUserInfosToReplaceUserOps(newUserInfos),
+ ];
+
if (deleteUserInfoIDs) {
userStoreOps.push({
type: 'remove_users',
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 4:00 PM (5 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2535208
Default Alt Text
D12513.id.diff (815 B)
Attached To
Mode
D12513: [lib] Discard keyserver usernames for processServerRequestsActionType
Attached
Detach File
Event Timeline
Log In to Comment