Skip to content

Commit

Permalink
get relation using getWireContent
Browse files Browse the repository at this point in the history
  • Loading branch information
ajbura committed Jan 20, 2025
1 parent b524778 commit 33005df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/features/room/RoomTimeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 33005df

Please sign in to comment.