Resumable backup import
This commit is contained in:
@@ -346,6 +346,7 @@ export const DataReader: ServerReadableInterface = {
|
||||
finishGetKnownMessageAttachments,
|
||||
pageMessages,
|
||||
finishPageMessages,
|
||||
getKnownDownloads,
|
||||
getKnownConversationAttachments,
|
||||
};
|
||||
|
||||
@@ -6810,6 +6811,17 @@ function finishPageMessages(
|
||||
`);
|
||||
}
|
||||
|
||||
function getKnownDownloads(db: ReadableDB): Array<string> {
|
||||
const result = [];
|
||||
|
||||
const backup = getItemById(db, 'backupDownloadPath');
|
||||
if (backup) {
|
||||
result.push(backup.value);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
function getKnownConversationAttachments(db: ReadableDB): Array<string> {
|
||||
const result = new Set<string>();
|
||||
const chunkSize = 500;
|
||||
|
Reference in New Issue
Block a user