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

Commit 282b711

Browse files
committed
fixup! Add support for rendering custom emojis in reactions
Signed-off-by: Sumner Evans <me@sumnerevans.com>
1 parent 1c6015c commit 282b711

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/views/messages/ReactionsRowButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import React from "react";
1818
import classNames from "classnames";
1919
import { MatrixEvent } from "matrix-js-sdk/src/models/event";
2020

21-
import { MatrixClientPeg } from "../../../MatrixClientPeg";
21+
import { mediaFromMxc } from "../../../customisations/Media";
2222
import { _t } from "../../../languageHandler";
2323
import { formatCommaSeparatedList } from "../../../utils/FormattingUtils";
2424
import dis from "../../../dispatcher/dispatcher";
@@ -135,7 +135,7 @@ export default class ReactionsRowButton extends React.PureComponent<IProps, ISta
135135
<img
136136
className="mx_ReactionsRowButton_content"
137137
alt={content}
138-
src={MatrixClientPeg.get().mxcUrlToHttp(content)}
138+
src={mediaFromMxc(content).srcHttp}
139139
width="16"
140140
height="16"
141141
/>

0 commit comments

Comments
 (0)