Page MenuHomePhabricator

D10761.id36392.diff
No OneTemporary

D10761.id36392.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
Thu, Nov 28, 10:25 AM (21 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2593762
Default Alt Text
D10761.id36392.diff (1 KB)

Event Timeline