sforkowany z mirror/soapbox
Fix chatEmojiReactions feature gating
rodzic
783a79d306
commit
d273947f70
|
@ -208,7 +208,7 @@ const ChatMessage = (props: IChatMessage) => {
|
|||
})
|
||||
}
|
||||
>
|
||||
{!features.chatEmojiReactions ? (
|
||||
{features.chatEmojiReactions && (
|
||||
<ChatMessageReactionWrapper
|
||||
onOpen={setIsReactionSelectorOpen}
|
||||
onSelect={(emoji) => createReaction.mutate({ emoji, messageId: chatMessage.id, chatMessage })}
|
||||
|
@ -226,7 +226,7 @@ const ChatMessage = (props: IChatMessage) => {
|
|||
/>
|
||||
</button>
|
||||
</ChatMessageReactionWrapper>
|
||||
) : null}
|
||||
)}
|
||||
|
||||
{menu.length > 0 && (
|
||||
<DropdownMenu
|
||||
|
@ -307,7 +307,7 @@ const ChatMessage = (props: IChatMessage) => {
|
|||
</Stack>
|
||||
</HStack>
|
||||
|
||||
{(features.chatEmojiReactions && chatMessage.emoji_reactions) ? (
|
||||
{(chatMessage.emoji_reactions.size > 0) ? (
|
||||
<div
|
||||
className={clsx({
|
||||
'space-y-1': true,
|
||||
|
|
Ładowanie…
Reference in New Issue