Skip to content

Commit

Permalink
Fix issue where standard emojis were not rendered properly in reactio…
Browse files Browse the repository at this point in the history
…n dialog.
  • Loading branch information
prathercc committed Jul 16, 2024
1 parent a6548a7 commit cdb79e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/changelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"Fix export issue when using Separate Threads & Forum Posts export option.",
"Prevent ghost files from being created when no messages are available for export.",
"Apply Advanced Filters to multi-Channel exports.",
"Show Channel name on thread/forum post messages in Guild exports."
"Show Channel name on thread/forum post messages in Guild exports.",
"Fix issue where standard emojis were not rendered properly in reaction dialog."
]
},
{
Expand Down
6 changes: 5 additions & 1 deletion src/components/reaction-list-item-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ const ReactionListItemButton = ({
<ListItemButton dense onClick={handleClick}>
<Tooltip title={emoji.id ? `:${emoji.name}:` : `${emoji.name}`}>
<ListItemIcon onClick={handleEmojiClick}>
{remoteEmojiUrl ? <ServerEmoji url={remoteEmojiUrl} /> : emoji.name}
{emoji.id && remoteEmojiUrl ? (
<ServerEmoji url={remoteEmojiUrl} />
) : (
emoji.name
)}
</ListItemIcon>
</Tooltip>
<ListItemText
Expand Down

0 comments on commit cdb79e7

Please sign in to comment.