Page MenuHomePhabricator

D12513.id41570.diff
No OneTemporary

D12513.id41570.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
@@ -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

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)

Event Timeline