Resumable backup import
This commit is contained in:
parent
3d8aaf0a5a
commit
8ef149e3a8
17 changed files with 498 additions and 33 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue