diff --git a/lib/actions/thread-actions.js b/lib/actions/thread-actions.js --- a/lib/actions/thread-actions.js +++ b/lib/actions/thread-actions.js @@ -19,7 +19,6 @@ RoleDeletionPayload, } from '../types/thread-types.js'; import { extractKeyserverIDFromID } from '../utils/action-utils.js'; -import type { CallServerEndpoint } from '../utils/call-server-endpoint.js'; import type { CallKeyserverEndpoint } from '../utils/keyserver-call'; import { useKeyserverCall } from '../utils/keyserver-call.js'; import { values } from '../utils/objects.js'; @@ -35,13 +34,13 @@ }); const deleteThread = ( - callServerEndpoint: CallServerEndpoint, + callKeyserverEndpoint: CallKeyserverEndpoint, ): ((input: DeleteThreadInput) => Promise) => async input => { const keyserverID = extractKeyserverIDFromID(input.threadID); const requests = { [keyserverID]: input }; - const responses = await callServerEndpoint('delete_thread', requests); + const responses = await callKeyserverEndpoint('delete_thread', requests); const response = responses[keyserverID]; return { updatesResult: response.updatesResult,