Merge pull request #6816 from matrix-org/revert-6809-madlittlemods/10391-show-relations-in-new-edit-content
Revert "Show updated relation reply from edited message"
This commit is contained in:
commit
53041ba4b8
1 changed files with 1 additions and 4 deletions
|
@ -88,10 +88,7 @@ export default class ReplyThread extends React.Component<IProps, IState> {
|
||||||
// could be used here for replies as well... However, the helper
|
// could be used here for replies as well... However, the helper
|
||||||
// currently assumes the relation has a `rel_type`, which older replies
|
// currently assumes the relation has a `rel_type`, which older replies
|
||||||
// do not, so this block is left as-is for now.
|
// do not, so this block is left as-is for now.
|
||||||
//
|
const mRelatesTo = ev.getWireContent()['m.relates_to'];
|
||||||
// We're using ev.getContent() over ev.getWireContent() to make sure
|
|
||||||
// we grab the latest edit with potentially new relations.
|
|
||||||
const mRelatesTo = ev.getContent()['m.relates_to'];
|
|
||||||
if (mRelatesTo && mRelatesTo['m.in_reply_to']) {
|
if (mRelatesTo && mRelatesTo['m.in_reply_to']) {
|
||||||
const mInReplyTo = mRelatesTo['m.in_reply_to'];
|
const mInReplyTo = mRelatesTo['m.in_reply_to'];
|
||||||
if (mInReplyTo && mInReplyTo['event_id']) return mInReplyTo['event_id'];
|
if (mInReplyTo && mInReplyTo['event_id']) return mInReplyTo['event_id'];
|
||||||
|
|
Loading…
Reference in a new issue