Compare commits

..

2 commits

Author SHA1 Message Date
05aecec833
chore: add mx-uc.css 2024-01-18 21:06:01 +09:00
cc0320e5a8
chore: update config.json and title for supnas 2024-01-18 21:06:01 +09:00

View file

@ -3,7 +3,7 @@ import { Box, Text, as } from 'folds';
import classNames from 'classnames';
import { MatrixClient, MatrixEvent, Room } from 'matrix-js-sdk';
import * as css from './Reaction.css';
import { getHexcodeForEmoji, getShortcodeFor, getEmojiUrl, isUsingTwemoji } from '../../plugins/emoji';
import { getHexcodeForEmoji, getShortcodeFor } from '../../plugins/emoji';
import { getMemberDisplayName } from '../../utils/room';
import { eventWithShortcode, getMxIdLocalPart } from '../../utils/matrix';
@ -31,13 +31,6 @@ export const Reaction = as<
src={mx.mxcUrlToHttp(reaction) ?? reaction}
alt={reaction}
/>
) : isUsingTwemoji() ? (
<img
className={css.ReactionImg}
src={getEmojiUrl(reaction)}
alt={reaction}
title={getShortcodeFor(getHexcodeForEmoji(reaction))}
/>
) : (
<Text as="span" size="Inherit" truncate>
{reaction}