You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2026-01-03 21:42:32 +03:00
Fix reply chain fallback for first event in a thread (#7580)
This commit is contained in:
@@ -212,7 +212,7 @@ export default class ThreadView extends React.Component<IProps, IState> {
|
||||
"rel_type": RelationType.Thread,
|
||||
"event_id": this.state.thread?.id,
|
||||
"m.in_reply_to": {
|
||||
"event_id": this.state.lastThreadReply?.getId(),
|
||||
"event_id": this.state.lastThreadReply?.getId() ?? this.state.thread?.id,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -101,8 +101,6 @@ export default class ReplyChain extends React.Component<IProps, IState> {
|
||||
if (!ev || ev.isRedacted()) return;
|
||||
if (ev.replyEventId) {
|
||||
return ev.replyEventId;
|
||||
} else if (!SettingsStore.getValue("feature_thread") && ev.isThreadRelation) {
|
||||
return ev.threadRootId;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user