Page MenuHomePhabricator

D12512.id41567.diff
No OneTemporary

D12512.id41567.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
@@ -258,7 +258,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, 7:04 AM (1 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2496764
Default Alt Text
D12512.id41567.diff (686 B)

Event Timeline