1
0
mirror of https://github.com/h3poteto/whalebird-desktop synced 2025-02-03 18:57:43 +01:00

Merge pull request #4700 from h3poteto/iss-4653/emoji

refs #4653 Show emoji reactions
This commit is contained in:
AkiraFukushima 2023-12-07 00:37:15 +09:00 committed by GitHub
commit 403a54c5a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,6 +74,12 @@ export default function Status(props: Props) {
{status.poll && <Poll poll={status.poll} onRefresh={onRefresh} client={props.client} />}
{status.card && <Card card={status.card} />}
<Media media={status.media_attachments} sensitive={status.sensitive} openMedia={props.openMedia} />
{status.emoji_reactions &&
status.emoji_reactions.map(e => (
<button key={e.name} className="py-1">
{e.url ? <img src={e.url} style={{ height: '24px' }} /> : <span>{e.name}</span>}
</button>
))}
</>
)}