forked from Mirrors/gomuks
web/timeline: fix rendering replies in edited events
This commit is contained in:
parent
ca6736f892
commit
7ef6509d46
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ const TimelineEvent = ({ room, evt, prevEvt, setReplyTo }: TimelineEventProps) =
|
|||
const fullTime = fullTimeFormatter.format(eventTS)
|
||||
const shortTime = formatShortTime(eventTS)
|
||||
const editTime = editEventTS ? `Edited at ${fullTimeFormatter.format(editEventTS)}` : null
|
||||
const replyTo = evt.content["m.relates_to"]?.["m.in_reply_to"]?.event_id
|
||||
const replyTo = (evt.orig_content ?? evt.content)["m.relates_to"]?.["m.in_reply_to"]?.event_id
|
||||
const mainEvent = <div className={wrapperClassNames.join(" ")}>
|
||||
<div className="sender-avatar" title={evt.sender}>
|
||||
<img
|
||||
|
|
Loading…
Add table
Reference in a new issue