Support for single-attachment delete synced across devices

This commit is contained in:
Scott Nonnenberg 2024-06-21 15:35:18 -07:00 committed by GitHub
parent 97229e2e65
commit ac04d02d4f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 422 additions and 55 deletions

View file

@ -1833,6 +1833,7 @@ export class BackupExportStream extends Readable {
backupLevel: BackupLevel;
messageReceivedAt: number;
}): Promise<Backups.MessageAttachment> {
const { clientUuid } = attachment;
const filePointer = await this.processAttachment({
attachment,
backupLevel,
@ -1843,6 +1844,7 @@ export class BackupExportStream extends Readable {
pointer: filePointer,
flag: this.getMessageAttachmentFlag(attachment),
wasDownloaded: isDownloaded(attachment), // should always be true
clientUuid: clientUuid ? uuidToBytes(clientUuid) : undefined,
});
}