Merge branch 'fix-emoji-display' into 'main'
fix: like emoji display Closes #1796 See merge request soapbox-pub/soapbox!3295
This commit is contained in:
commit
3b5ad6e3ba
|
@ -660,7 +660,10 @@ const StatusActionBar: React.FC<IStatusActionBar> = ({
|
||||||
|
|
||||||
const emojiReactCount = status.reactions?.reduce((acc, reaction) => acc + (reaction.count ?? 0), 0) ?? 0; // allow all emojis
|
const emojiReactCount = status.reactions?.reduce((acc, reaction) => acc + (reaction.count ?? 0), 0) ?? 0; // allow all emojis
|
||||||
|
|
||||||
const meEmojiReact = status.reactions?.find((emojiReact) => emojiReact.me); // allow all emojis
|
const meEmojiReact = status.reactions?.find((emojiReact) => emojiReact.me) // allow all emojis
|
||||||
|
?? (account && status.favourited)
|
||||||
|
? { count: 1, me: status.account.id === account!.id, name: '👍' }
|
||||||
|
: undefined;
|
||||||
const meEmojiName = meEmojiReact?.name as keyof typeof reactMessages | undefined;
|
const meEmojiName = meEmojiReact?.name as keyof typeof reactMessages | undefined;
|
||||||
|
|
||||||
const reactMessages = {
|
const reactMessages = {
|
||||||
|
|
Loading…
Reference in New Issue