From 128de0aab9a4faab970c4a2ab254695c3828ab61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Sun, 15 Mar 2026 11:05:57 +0100 Subject: [PATCH] nicolium: batcher made this obsolete MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- packages/nicolium/src/actions/statuses.ts | 47 ----------------------- 1 file changed, 47 deletions(-) diff --git a/packages/nicolium/src/actions/statuses.ts b/packages/nicolium/src/actions/statuses.ts index 20f812cd2..c019a8eee 100644 --- a/packages/nicolium/src/actions/statuses.ts +++ b/packages/nicolium/src/actions/statuses.ts @@ -279,53 +279,6 @@ const unmuteStatus = (statusId: string) => { const toggleMuteStatus = (status: Pick) => status.muted ? unmuteStatus(status.id) : muteStatus(status.id); -// let TRANSLATIONS_QUEUE: Set = new Set(); -// let TRANSLATIONS_TIMEOUT: NodeJS.Timeout | null = null; - -// const translateStatus = (statusId: string, targetLanguage: string, lazy?: boolean) => { -// const client = getClient(); -// const features = client.features; - -// const handleTranslateMany = () => { -// const copy = [...TRANSLATIONS_QUEUE]; -// TRANSLATIONS_QUEUE = new Set(); -// if (TRANSLATIONS_TIMEOUT) clearTimeout(TRANSLATIONS_TIMEOUT); - -// return client.statuses.translateStatuses(copy, targetLanguage).then((response) => { -// response.forEach((translation) => { -// dispatch({ -// type: STATUS_TRANSLATE_SUCCESS, -// statusId: translation.id, -// translation: translation, -// }); - -// copy -// .filter((statusId) => !response.some(({ id }) => id === statusId)) -// .forEach((statusId) => dispatch({ -// type: STATUS_TRANSLATE_FAIL, -// statusId, -// })); -// }); -// }).catch(error => { -// dispatch({ -// type: STATUS_TRANSLATE_FAIL, -// statusId, -// error, -// }); -// }); -// }; - -// if (features.lazyTranslations && lazy) { -// TRANSLATIONS_QUEUE.add(statusId); - -// if (TRANSLATIONS_TIMEOUT) clearTimeout(TRANSLATIONS_TIMEOUT); -// TRANSLATIONS_TIMEOUT = setTimeout(() => handleTranslateMany(), 3000); -// } else if (features.lazyTranslations && TRANSLATIONS_QUEUE.size) { -// TRANSLATIONS_QUEUE.add(statusId); - -// handleTranslateMany(); -// }; - export { createStatus, editStatus,