From 2c50c4c5065424813afb07ae9d8ba2918927416d Mon Sep 17 00:00:00 2001 From: Erwan Leboucher Date: Thu, 23 Jul 2026 22:05:47 +0200 Subject: [PATCH] fix: render emotes at full resolution instead of 32px crop --- src/app/components/message/ReactionKeyInline.tsx | 2 +- src/app/plugins/react-custom-html-parser.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/message/ReactionKeyInline.tsx b/src/app/components/message/ReactionKeyInline.tsx index ae84f4471..a22c7c709 100644 --- a/src/app/components/message/ReactionKeyInline.tsx +++ b/src/app/components/message/ReactionKeyInline.tsx @@ -23,7 +23,7 @@ export function ReactionKeyInline({ const [imgError, setImgError] = useState(false); const rawReactionUrl = reactionKey && reactionKey.startsWith('mxc://') - ? (mxcUrlToHttp(mx, reactionKey, useAuthentication, 32, 32, 'crop') ?? undefined) + ? (mxcUrlToHttp(mx, reactionKey, useAuthentication) ?? undefined) : undefined; const renderableReactionUrl = useRenderableMediaUrl(rawReactionUrl); diff --git a/src/app/plugins/react-custom-html-parser.tsx b/src/app/plugins/react-custom-html-parser.tsx index 0f430d3d2..a4dd5c270 100644 --- a/src/app/plugins/react-custom-html-parser.tsx +++ b/src/app/plugins/react-custom-html-parser.tsx @@ -868,7 +868,7 @@ export const getReactCustomHtmlParser = ( const title = attrString(props.title); const isEmoticon = 'data-mx-emoticon' in props; const htmlSrc = isEmoticon - ? (mxcUrlToHttp(mx, src, params.useAuthentication, 32, 32, 'crop') ?? undefined) + ? (mxcUrlToHttp(mx, src, params.useAuthentication) ?? undefined) : (mxcUrlToHttp(mx, src, params.useAuthentication, 640, 480, 'scale') ?? undefined); const fallbackLabel = alt || title || '[media]'; const failedToResolveMxc = src.startsWith('mxc://') && !htmlSrc;