Page MenuHomePhabricator

D9806.diff
No OneTemporary

D9806.diff

diff --git a/lib/actions/keyserver-actions.js b/lib/actions/keyserver-actions.js
--- a/lib/actions/keyserver-actions.js
+++ b/lib/actions/keyserver-actions.js
@@ -2,4 +2,6 @@
const addKeyserverActionType = 'ADD_KEYSERVER';
-export { addKeyserverActionType };
+const removeKeyserverActionType = 'REMOVE_KEYSERVER';
+
+export { addKeyserverActionType, removeKeyserverActionType };
diff --git a/lib/types/keyserver-types.js b/lib/types/keyserver-types.js
--- a/lib/types/keyserver-types.js
+++ b/lib/types/keyserver-types.js
@@ -33,6 +33,10 @@
+newKeyserverInfo: KeyserverInfo,
};
+export type RemoveKeyserverPayload = {
+ +keyserverAdminUserID: string,
+};
+
export const keyserverInfoValidator: TInterface<KeyserverInfo> =
tShape<KeyserverInfo>({
cookie: t.maybe(t.String),
diff --git a/lib/types/redux-types.js b/lib/types/redux-types.js
--- a/lib/types/redux-types.js
+++ b/lib/types/redux-types.js
@@ -42,7 +42,11 @@
SetCalendarDeletedFilterPayload,
} from './filter-types.js';
import type { IntegrityStore } from './integrity-types.js';
-import type { KeyserverStore, AddKeyserverPayload } from './keyserver-types.js';
+import type {
+ KeyserverStore,
+ AddKeyserverPayload,
+ RemoveKeyserverPayload,
+} from './keyserver-types.js';
import type { LifecycleState } from './lifecycle-state-types.js';
import type {
FetchInviteLinksResponse,
@@ -1236,6 +1240,10 @@
| {
+type: 'ADD_KEYSERVER',
+payload: AddKeyserverPayload,
+ }
+ | {
+ +type: 'REMOVE_KEYSERVER',
+ +payload: RemoveKeyserverPayload,
};
export type ActionPayload = ?(Object | Array<*> | $ReadOnlyArray<*> | string);

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 1:41 AM (20 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2496021
Default Alt Text
D9806.diff (1 KB)

Event Timeline