From 51abbbaf2a8c3883fa22c76d1747812b100daf87 Mon Sep 17 00:00:00 2001 From: Evie Gauthier Date: Thu, 12 Mar 2026 14:25:08 -0400 Subject: [PATCH 1/2] fix: reaction clicks, zoom persistence, and empty message rendering --- .changeset/fix-ui-bugs.md | 5 +++++ src/app/components/message/RenderBody.tsx | 4 ++-- src/app/pages/client/ClientNonUIFeatures.tsx | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .changeset/fix-ui-bugs.md diff --git a/.changeset/fix-ui-bugs.md b/.changeset/fix-ui-bugs.md new file mode 100644 index 00000000..63ae872a --- /dev/null +++ b/.changeset/fix-ui-bugs.md @@ -0,0 +1,5 @@ +--- +'default': patch +--- + +Fix reaction clicks, zoom persistence, and empty message rendering diff --git a/src/app/components/message/RenderBody.tsx b/src/app/components/message/RenderBody.tsx index 8a4c268b..e9e09c15 100644 --- a/src/app/components/message/RenderBody.tsx +++ b/src/app/components/message/RenderBody.tsx @@ -20,9 +20,9 @@ export function RenderBody({ htmlReactParserOptions, linkifyOpts, }: RenderBodyProps) { - if (body === '') ; + if (body === '') return ; if (customBody) { - if (customBody === '') ; + if (customBody === '') return ; return parse(sanitizeCustomHtml(customBody), htmlReactParserOptions); } return ( diff --git a/src/app/pages/client/ClientNonUIFeatures.tsx b/src/app/pages/client/ClientNonUIFeatures.tsx index 5ec5d880..0975e698 100644 --- a/src/app/pages/client/ClientNonUIFeatures.tsx +++ b/src/app/pages/client/ClientNonUIFeatures.tsx @@ -316,7 +316,7 @@ function MessageNotifications() { return; } - if (!room || isHistoricalEvent || room.isSpaceRoom() || !isNotificationEvent(mEvent)) { + if (!room || isHistoricalEvent || room.isSpaceRoom() || !isNotificationEvent(mEvent, room, mx.getUserId())) { return; } From 27fe27342a5529bc2a082d90cc24de2838179f77 Mon Sep 17 00:00:00 2001 From: Evie Gauthier Date: Thu, 12 Mar 2026 14:47:04 -0400 Subject: [PATCH 2/2] fix: correct isNotificationEvent function usage --- src/app/pages/client/ClientNonUIFeatures.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/pages/client/ClientNonUIFeatures.tsx b/src/app/pages/client/ClientNonUIFeatures.tsx index 0975e698..5ec5d880 100644 --- a/src/app/pages/client/ClientNonUIFeatures.tsx +++ b/src/app/pages/client/ClientNonUIFeatures.tsx @@ -316,7 +316,7 @@ function MessageNotifications() { return; } - if (!room || isHistoricalEvent || room.isSpaceRoom() || !isNotificationEvent(mEvent, room, mx.getUserId())) { + if (!room || isHistoricalEvent || room.isSpaceRoom() || !isNotificationEvent(mEvent)) { return; }