diff --git a/src/app/components/message/Reaction.tsx b/src/app/components/message/Reaction.tsx index ce2c2bf..ec6e3c1 100644 --- a/src/app/components/message/Reaction.tsx +++ b/src/app/components/message/Reaction.tsx @@ -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 } from '../../plugins/emoji'; +import { getHexcodeForEmoji, getShortcodeFor, getEmojiUrl, isUsingTwemoji } from '../../plugins/emoji'; import { getMemberDisplayName } from '../../utils/room'; import { eventWithShortcode, getMxIdLocalPart } from '../../utils/matrix'; @@ -31,6 +31,13 @@ export const Reaction = as< src={mx.mxcUrlToHttp(reaction) ?? reaction} alt={reaction} /> + ) : isUsingTwemoji() ? ( + {reaction} ) : ( {reaction}