This commit is contained in:
Timothy Jaeryang Baek
2025-12-27 22:31:18 +04:00
parent 7b6f8b49e0
commit d4de26bd05

View File

@@ -110,17 +110,19 @@
cancelDownload();
return;
}
downloading = true;
syncing = true;
// Get total count first
const _res = await exportChatStats(localStorage.token, 1, eventData?.searchParams ?? {}).catch(() => {
return null;
});
const _res = await exportChatStats(localStorage.token, 1, eventData?.searchParams ?? {}).catch(
() => {
return null;
}
);
if (_res) {
total = _res.total;
}
downloading = true;
syncing = true;
processedItemsCount = 0;
const resVersion = await getVersion(localStorage.token).catch(() => {
return null;