mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-22 17:38:10 +01:00
Resumable backup import
This commit is contained in:
@@ -983,6 +983,7 @@ export type ServerReadableDirectInterface = ReadableInterface & {
|
||||
finishGetKnownMessageAttachments: (
|
||||
cursor: MessageAttachmentsCursorType
|
||||
) => void;
|
||||
getKnownDownloads: () => Array<string>;
|
||||
getKnownConversationAttachments: () => Array<string>;
|
||||
|
||||
getAllBadgeImageFileLocalPaths: () => Set<string>;
|
||||
|
||||
@@ -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