This commit is contained in:
Timothy Jaeryang Baek
2025-12-27 22:31:18 +04:00
parent 7b6f8b49e0
commit d4de26bd05
@@ -110,17 +110,19 @@
cancelDownload(); cancelDownload();
return; return;
} }
downloading = true;
syncing = true;
// Get total count first // Get total count first
const _res = await exportChatStats(localStorage.token, 1, eventData?.searchParams ?? {}).catch(() => { const _res = await exportChatStats(localStorage.token, 1, eventData?.searchParams ?? {}).catch(
return null; () => {
}); return null;
}
);
if (_res) { if (_res) {
total = _res.total; total = _res.total;
} }
downloading = true;
syncing = true;
processedItemsCount = 0; processedItemsCount = 0;
const resVersion = await getVersion(localStorage.token).catch(() => { const resVersion = await getVersion(localStorage.token).catch(() => {
return null; return null;