From 66dbb1616d2db2952588e3e77187fdf0f23de09e Mon Sep 17 00:00:00 2001 From: hippoz <10706925-hippoz@users.noreply.gitlab.com> Date: Sun, 26 Mar 2023 01:55:46 +0200 Subject: [PATCH] quick fix --- src/app/molecules/message/Message.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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