diff --git a/keyserver/src/fetchers/thread-fetchers.js b/keyserver/src/fetchers/thread-fetchers.js --- a/keyserver/src/fetchers/thread-fetchers.js +++ b/keyserver/src/fetchers/thread-fetchers.js @@ -266,6 +266,14 @@ return rawThreadInfosFromServerThreadInfos(viewer, serverResult); } +async function fetchThreadInfos( + viewer: Viewer, + inputFilter?: FetchThreadInfosFilter, +): Promise { + const serverResult = await fetchServerThreadInfos(inputFilter); + return rawThreadInfosFromServerThreadInfos(viewer, serverResult); +} + function rawThreadInfosFromServerThreadInfos( viewer: Viewer, serverResult: FetchServerThreadInfosResult, @@ -464,6 +472,7 @@ export { fetchServerThreadInfos, fetchAccessibleThreadInfos, + fetchThreadInfos, rawThreadInfosFromServerThreadInfos, verifyThreadIDs, verifyThreadID,