diff --git a/ts/models/messages.ts b/ts/models/messages.ts index 05757518cf6..5d9bbbebf43 100644 --- a/ts/models/messages.ts +++ b/ts/models/messages.ts @@ -1851,7 +1851,9 @@ export class MessageModel extends window.Backbone.Model { isUpdate, options: sendOptions, }), - { messageIds: [this.id], sendType: 'sentSync' } + // Note: in some situations, for doNotSave messages, the message has no + // id, so we provide an empty array here. + { messageIds: this.id ? [this.id] : [], sendType: 'sentSync' } ).then(async result => { let newSendStateByConversationId: undefined | SendStateByConversationId; const sendStateByConversationId =