                 }
             default:
                 if attachment.isFile {
-                    if object.message.text.isEmpty && shouldAppendMessageHeader {
+                    if sanitizedMessage.isEmpty && shouldAppendMessageHeader {
                         cells.append(FileMessageChatItem(
                             attachment: attachment,
                             hasText: false,

                    ).wrapped)
                }
            case .video:
                if object.message.text.isEmpty && shouldAppendMessageHeader {
                    cells.append(VideoMessageChatItem(
                        identifier: attachment.identifier,
                        descriptionText: attachment.descriptionText,

                    ).wrapped)
                }
            case .textAttachment where attachment.fields.count > 0:
                if sanitizedMessage.isEmpty && shouldAppendMessageHeader {
                    cells.append(TextAttachmentChatItem(
                        attachment: attachment,
                        hasText: false,
