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

refs #4653 Show emoji reactions

This commit is contained in:
AkiraFukushima 2023-12-07 00:35:46 +09:00
parent 171af92a32
commit 2315059df0
No known key found for this signature in database
GPG Key ID: B6E51BAC4DE1A957

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>
))}
</>
)}