Page MenuHomePhabricator

D12512.id41689.diff
No OneTemporary

D12512.id41689.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
@@ -268,7 +268,12 @@
if (payload.keyserverID !== authoritativeKeyserverID()) {
return [state, [], []];
}
- const newUserInfos = _keyBy(userInfo => userInfo.id)(payload.userInfos);
+ const keyserverUserInfos = _keyBy(userInfo => userInfo.id)(payload.userInfos);
+ const newUserInfos = discardKeyserverUsernames(
+ keyserverUserInfos,
+ state.userInfos,
+ );
+
const userStoreOps: $ReadOnlyArray<UserStoreOperation> = [
...convertUserInfosToReplaceUserOps(newUserInfos),
...generateOpsForUserUpdates(payload),

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 1:15 PM (7 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2497937
Default Alt Text
D12512.id41689.diff (686 B)

Event Timeline