quick fix

This commit is contained in:
hippoz 2023-03-26 01:55:46 +02:00
parent 212f18b69c
commit 66dbb1616d
Signed by: hippoz
GPG key ID: 56C4E02A85F2FBED

View file

@ -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