Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3249257
D12512.id41689.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.id41689.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
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)
Attached To
Mode
D12512: [lib] Discard keyserver usernames for incremental state sync and processUpdatesActionType
Attached
Detach File
Event Timeline
Log In to Comment