Skip to content

Commit

Permalink
Merge pull request #1339 from h3poteto/iss-1334/fix-add-custom
Browse files Browse the repository at this point in the history
refs #1334 Fix adding custom emoji reaction
  • Loading branch information
h3poteto authored Feb 8, 2024
2 parents 3c0889f + 4875362 commit d7b21c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/timelines/status/Actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,11 @@ const Actions: React.FC<Props> = props => {
}

const onEmojiSelect = async emoji => {
const res = await props.client.createEmojiReaction(props.status.id, emoji.native)
let name = emoji.shortcodes
if (emoji.native) {
name = emoji.native
}
const res = await props.client.createEmojiReaction(props.status.id, name)
props.updateStatus(res.data)

emojiPickerRef?.current.close()
Expand Down

0 comments on commit d7b21c8

Please sign in to comment.