Page MenuHomePhabricator

D12513.id.diff
No OneTemporary

D12513.id.diff

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

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)

Event Timeline