Page MenuHomePhabricator

D10761.diff
No OneTemporary

D10761.diff

diff --git a/lib/reducers/keyserver-reducer.js b/lib/reducers/keyserver-reducer.js
--- a/lib/reducers/keyserver-reducer.js
+++ b/lib/reducers/keyserver-reducer.js
@@ -156,20 +156,24 @@
action.type === keyserverAuthActionTypes.success
) {
const { updatesCurrentAsOf } = action.payload;
- let keyserverInfos = { ...state.keyserverInfos };
+
+ const operations: ReplaceKeyserverOperation[] = [];
for (const keyserverID in updatesCurrentAsOf) {
- keyserverInfos = {
- ...keyserverInfos,
- [keyserverID]: {
- ...keyserverInfos[keyserverID],
- updatesCurrentAsOf: updatesCurrentAsOf[keyserverID],
- lastCommunicatedPlatformDetails: getConfig().platformDetails,
+ operations.push({
+ type: 'replace_keyserver',
+ payload: {
+ id: keyserverID,
+ keyserverInfo: {
+ ...state.keyserverInfos[keyserverID],
+ updatesCurrentAsOf: updatesCurrentAsOf[keyserverID],
+ lastCommunicatedPlatformDetails: getConfig().platformDetails,
+ },
},
- };
+ });
}
return {
...state,
- keyserverInfos,
+ keyserverInfos: processStoreOps(state.keyserverInfos, operations),
};
} else if (action.type === fullStateSyncActionType) {
const { keyserverID } = action.payload;

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 2:59 PM (19 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2576484
Default Alt Text
D10761.diff (1 KB)

Event Timeline