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
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,
},
]);
});