Page MenuHomePhabricator

D12512.id41691.diff
No OneTemporary

D12512.id41691.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
Mon, Nov 18, 2:49 PM (4 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2534295
Default Alt Text
D12512.id41691.diff (686 B)

Event Timeline