Skip to content

Commit

Permalink
fix: attach class str-chat__message-with-thread-link only if the mess…
Browse files Browse the repository at this point in the history
…age has replies (#2386)
  • Loading branch information
MartinCupela committed May 9, 2024
1 parent bb5219f commit c71f94e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Message/MessageSimple.tsx
Expand Up @@ -136,9 +136,10 @@ const MessageSimpleWithContext = <
'str-chat__message--has-attachment': hasAttachment,
'str-chat__message--highlighted': highlighted,
'str-chat__message--pinned pinned-message': message.pinned,
'str-chat__message--with-reactions str-chat__message-with-thread-link': canShowReactions,
'str-chat__message--with-reactions': canShowReactions,
'str-chat__message-send-can-be-retried':
message?.status === 'failed' && message?.errorStatusCode !== 403,
'str-chat__message-with-thread-link': showReplyCountButton,
'str-chat__virtual-message__wrapper--end': endOfGroup,
'str-chat__virtual-message__wrapper--first': firstOfGroup,
'str-chat__virtual-message__wrapper--group': groupedByUser,
Expand Down

0 comments on commit c71f94e

Please sign in to comment.