quick fix
This commit is contained in:
parent
212f18b69c
commit
66dbb1616d
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ const MessageBody = React.memo(({
|
||||||
if (content.type === 'img') {
|
if (content.type === 'img') {
|
||||||
// If this messages contains only a single (inline) image
|
// If this messages contains only a single (inline) image
|
||||||
emojiOnly = true;
|
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
|
// Otherwise, it might be an array of images / texb
|
||||||
|
|
||||||
// Count the number of emojis
|
// Count the number of emojis
|
||||||
|
|
Loading…
Reference in a new issue