Skip to content

Commit

Permalink
Fix reaction tooltip message
Browse files Browse the repository at this point in the history
Signed-off-by: ajbura <[email protected]>
  • Loading branch information
ajbura committed Feb 4, 2022
1 parent a59aa2c commit b008c5f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/molecules/message/Message.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,11 @@ function genReactionMsg(userIds, reaction) {
{userIds.map((userId, index) => (
<React.Fragment key={userId}>
{twemojify(getUsername(userId))}
<span style={{ opacity: '.6' }}>
{index === userIds.length - 1 ? ' and ' : ', '}
</span>
{index < userIds.length - 1 && (
<span style={{ opacity: '.6' }}>
{index === userIds.length - 2 ? ' and ' : ', '}
</span>
)}
</React.Fragment>
))}
<span style={{ opacity: '.6' }}>{' reacted with '}</span>
Expand Down

0 comments on commit b008c5f

Please sign in to comment.