Improve handling of DOE messages in backups
This commit is contained in:
parent
f36528e85a
commit
a370a6eb0a
3 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -1891,6 +1891,7 @@ export class BackupImportStream extends Writable {
|
|||
return {
|
||||
message: {
|
||||
isErased: true,
|
||||
deletedForEveryone: true,
|
||||
},
|
||||
additionalMessages: [],
|
||||
};
|
||||
|
|
|
@ -405,6 +405,7 @@ describe('backup/non-bubble messages', () => {
|
|||
seenStatus: SeenStatus.Unseen,
|
||||
unidentifiedDeliveryReceived: true,
|
||||
isErased: true,
|
||||
deletedForEveryone: true,
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue