diff --git a/ts/views/conversation_view.ts b/ts/views/conversation_view.ts index 8614e017be3..903f8cfe815 100644 --- a/ts/views/conversation_view.ts +++ b/ts/views/conversation_view.ts @@ -1324,7 +1324,7 @@ export class ConversationView extends window.Backbone.View { { attachments, doForwardMessage, - hasContact: Boolean(message.get('contact')), + hasContact: Boolean(message.get('contact')?.length), isSticker: Boolean(message.get('sticker')), messageBody: message.getRawText(), onClose: () => { @@ -1468,7 +1468,7 @@ export class ConversationView extends window.Backbone.View { }, { ...sendMessageOptions, timestamp } ); - } else if (contact) { + } else if (contact?.length) { const contactWithHydratedAvatar = await loadContactData(contact); conversation.enqueueMessageForSend( {