diff --git a/src/app/molecules/message/Message.jsx b/src/app/molecules/message/Message.jsx index 8eeb61f..91c4155 100644 --- a/src/app/molecules/message/Message.jsx +++ b/src/app/molecules/message/Message.jsx @@ -231,7 +231,7 @@ const MessageBody = React.memo(({ if (content.type === 'img') { // If this messages contains only a single (inline) image emojiOnly = true; - } else if (content.constructor.name === 'Array') { + } else if (content.constructor && content.constructor.name === 'Array') { // Otherwise, it might be an array of images / texb // Count the number of emojis