+
+ {menu.length > 0 && (
+ setIsMenuOpen(true)}
+ onClose={() => setIsMenuOpen(false)}
+ >
+
+
+ )}
+
+ {features.chatEmojiReactions ? (
+ createReaction.mutate({ emoji, messageId: chatMessage.id, chatMessage })}
+ >
+
+
+ ) : null}
+
+
+ {maybeRenderMedia(chatMessage)}
+
+ {content && (
+
+
+
+
+
+ )}
+
+
+
+ {(features.chatEmojiReactions && chatMessage.emoji_reactions) ? (
+
+ {emojiReactionRows?.map((emojiReactionRow: any, idx: number) => (
+
+ {emojiReactionRow.map((emojiReaction: any, idx: number) => (
+ createReaction.mutate({ emoji, messageId: chatMessage.id, chatMessage })}
+ onRemoveReaction={(emoji) => deleteReaction.mutate({ emoji, messageId: chatMessage.id })}
+ />
+ ))}
+
+ ))}
+
+ ) : null}
+
+
+
+
+
+ {intl.formatTime(chatMessage.created_at)}
+
+
+ {(isMyMessage && features.chatsReadReceipts) ? (
+ <>
+ {isRead ? (
+
+
+
+ ) : (
+
+
+
+ )}
+ >
+ ) : null}
+
+
+
+