Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3528892
D12513.id41570.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.id41570.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
@@ -535,12 +535,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
Wed, Dec 25, 11:11 AM (10 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2702577
Default Alt Text
D12513.id41570.diff (815 B)
Attached To
Mode
D12513: [lib] Discard keyserver usernames for processServerRequestsActionType
Attached
Detach File
Event Timeline
Log In to Comment