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 = tShape({ 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);