Improve handling of DOE messages in backups

This commit is contained in:
trevor-signal 2024-11-22 17:03:11 -05:00 committed by GitHub
parent f36528e85a
commit a370a6eb0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 1 deletions

View file

@ -1078,7 +1078,7 @@ export class BackupExportStream extends Readable {
message,
backupLevel,
});
} else if (message.isErased) {
} else if (message.deletedForEveryone) {
result.remoteDeletedMessage = {};
} else if (messageHasPaymentEvent(message)) {
const { payment } = message;

View file

@ -1891,6 +1891,7 @@ export class BackupImportStream extends Writable {
return {
message: {
isErased: true,
deletedForEveryone: true,
},
additionalMessages: [],
};

View file

@ -405,6 +405,7 @@ describe('backup/non-bubble messages', () => {
seenStatus: SeenStatus.Unseen,
unidentifiedDeliveryReceived: true,
isErased: true,
deletedForEveryone: true,
},
]);
});