Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
fixup! Add support for rendering custom emojis in reactions
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <me@sumnerevans.com>
  • Loading branch information
sumnerevans committed Jun 30, 2023
1 parent 1c6015c commit 282b711
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/views/messages/ReactionsRowButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import React from "react";
import classNames from "classnames";
import { MatrixEvent } from "matrix-js-sdk/src/models/event";

import { MatrixClientPeg } from "../../../MatrixClientPeg";
import { mediaFromMxc } from "../../../customisations/Media";
import { _t } from "../../../languageHandler";
import { formatCommaSeparatedList } from "../../../utils/FormattingUtils";
import dis from "../../../dispatcher/dispatcher";
Expand Down Expand Up @@ -135,7 +135,7 @@ export default class ReactionsRowButton extends React.PureComponent<IProps, ISta
<img
className="mx_ReactionsRowButton_content"
alt={content}
src={MatrixClientPeg.get().mxcUrlToHttp(content)}
src={mediaFromMxc(content).srcHttp}
width="16"
height="16"
/>
Expand Down

0 comments on commit 282b711

Please sign in to comment.