fix: like emoji display

This commit is contained in:
P. Reis 2024-12-12 00:32:25 -03:00
parent 95f134785d
commit a5048c9a6c
1 changed files with 4 additions and 1 deletions

View File

@ -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 = {