Improve handling of DOE sync messages for stories

This commit is contained in:
Fedor Indutny 2022-11-30 11:21:13 -08:00 committed by GitHub
parent 9d8ad21819
commit d1b505d580
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 10 deletions

View file

@ -3564,7 +3564,12 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
del: DeleteModel,
shouldPersist = true
): Promise<void> {
if (this.deletingForEveryone || this.get('deletedForEveryone')) {
return;
}
log.info('Handling DOE.', {
messageId: this.id,
fromId: del.get('fromId'),
targetSentTimestamp: del.get('targetSentTimestamp'),
messageServerTimestamp: this.get('serverTimestamp'),