From 9dd923bf26c0a008db712a6f70e797aa81b76786 Mon Sep 17 00:00:00 2001 From: Asraye Date: Mon, 15 Sep 2025 22:52:17 +1000 Subject: [PATCH] fix: render embeds in reply --- .../messaging/attachments/MessageReply.tsx | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/components/common/messaging/attachments/MessageReply.tsx b/src/components/common/messaging/attachments/MessageReply.tsx index cd3dc4b5..07622e41 100644 --- a/src/components/common/messaging/attachments/MessageReply.tsx +++ b/src/components/common/messaging/attachments/MessageReply.tsx @@ -1,4 +1,4 @@ -import { Reply } from "@styled-icons/boxicons-regular"; +import { Reply, LinkExternal } from "@styled-icons/boxicons-regular"; import { File } from "@styled-icons/boxicons-solid"; import { observer } from "mobx-react-lite"; import { useHistory } from "react-router-dom"; @@ -230,6 +230,25 @@ export const MessageReply = observer( )} /> )} + {message.embeds && + message.embeds.length > 0 && + message.embeds.map((embed, i) => + embed.title ? ( // If there's title, display title + + + {embed.title} + + + ) : ( + + ), + )} )}