Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3299706
D12512.id41691.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
686 B
Referenced Files
None
Subscribers
None
D12512.id41691.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D12512: [lib] Discard keyserver usernames for incremental state sync and processUpdatesActionType
Attached
Detach File
Event Timeline
Log In to Comment