fix threaded reply not working in encrypted rooms (#2172)
authorAjay Bura <32841439+ajbura@users.noreply.github.com>
Sun, 26 Jan 2025 11:56:33 +0000 (22:56 +1100)
committerGitHub <noreply@github.com>
Sun, 26 Jan 2025 11:56:33 +0000 (22:56 +1100)
src/app/features/room/RoomTimeline.tsx

index 63b3d3e2cdccd53f56eeb8b6286460183ff93a0d..fb743845e59d14784c015277cc92adba88dfba92 100644 (file)
@@ -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({