From 33005dfa0745a9301484e1c595c7d54bbee14438 Mon Sep 17 00:00:00 2001 From: Ajay Bura <32841439+ajbura@users.noreply.github.com> Date: Mon, 20 Jan 2025 20:41:59 +0530 Subject: [PATCH] get relation using getWireContent --- src/app/features/room/RoomTimeline.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/features/room/RoomTimeline.tsx b/src/app/features/room/RoomTimeline.tsx index 63b3d3e2..fb743845 100644 --- a/src/app/features/room/RoomTimeline.tsx +++ b/src/app/features/room/RoomTimeline.tsx @@ -900,7 +900,7 @@ export function RoomTimeline({ room, eventId, roomInputRef, editor }: RoomTimeli const editedReply = getEditedEvent(replyId, replyEvt, room.getUnfilteredTimelineSet()); const content: IContent = editedReply?.getContent()['m.new_content'] ?? replyEvt.getContent(); const { body, formatted_body: formattedBody } = content; - const { 'm.relates_to': relation } = replyEvt.getOriginalContent(); + const { 'm.relates_to': relation } = replyEvt.getWireContent(); const senderId = replyEvt.getSender(); if (senderId && typeof body === 'string') { setReplyDraft({