Improve handling of DOE messages in backups
This commit is contained in:
@@ -1078,7 +1078,7 @@ export class BackupExportStream extends Readable {
|
|||||||
message,
|
message,
|
||||||
backupLevel,
|
backupLevel,
|
||||||
});
|
});
|
||||||
} else if (message.isErased) {
|
} else if (message.deletedForEveryone) {
|
||||||
result.remoteDeletedMessage = {};
|
result.remoteDeletedMessage = {};
|
||||||
} else if (messageHasPaymentEvent(message)) {
|
} else if (messageHasPaymentEvent(message)) {
|
||||||
const { payment } = message;
|
const { payment } = message;
|
||||||
|
@@ -1891,6 +1891,7 @@ export class BackupImportStream extends Writable {
|
|||||||
return {
|
return {
|
||||||
message: {
|
message: {
|
||||||
isErased: true,
|
isErased: true,
|
||||||
|
deletedForEveryone: true,
|
||||||
},
|
},
|
||||||
additionalMessages: [],
|
additionalMessages: [],
|
||||||
};
|
};
|
||||||
|
@@ -405,6 +405,7 @@ describe('backup/non-bubble messages', () => {
|
|||||||
seenStatus: SeenStatus.Unseen,
|
seenStatus: SeenStatus.Unseen,
|
||||||
unidentifiedDeliveryReceived: true,
|
unidentifiedDeliveryReceived: true,
|
||||||
isErased: true,
|
isErased: true,
|
||||||
|
deletedForEveryone: true,
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user