Page MenuHomePhabricator

D9829.diff
No OneTemporary

D9829.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
@@ -4,7 +4,10 @@
import { reduceDeviceToken } from './device-token-reducer.js';
import reduceLastCommunicatedPlatformDetails from './last-communicated-platform-details-reducer.js';
import reduceUpdatesCurrentAsOf from './updates-reducer.js';
-import { addKeyserverActionType } from '../actions/keyserver-actions.js';
+import {
+ addKeyserverActionType,
+ removeKeyserverActionType,
+} from '../actions/keyserver-actions.js';
import { siweAuthActionTypes } from '../actions/siwe-actions.js';
import {
logInActionTypes,
@@ -48,6 +51,14 @@
},
},
};
+ } else if (action.type === removeKeyserverActionType) {
+ const { [action.payload.keyserverAdminUserID]: _, ...rest } =
+ state.keyserverInfos;
+
+ return {
+ ...state,
+ keyserverInfos: rest,
+ };
} else if (action.type === resetUserStateActionType) {
// this action is only dispatched on native
const stateCookie = state.keyserverInfos[ashoatKeyserverID]?.cookie;

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 8:13 PM (19 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2696209
Default Alt Text
D9829.diff (1 KB)

Event Timeline