Display threads relation as replies when labs is disabled (#7109)

This commit is contained in:
Germain 2021-11-11 12:28:56 +00:00 committed by GitHub
parent 1de9630e44
commit dadac386fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -110,6 +110,8 @@ export default class ReplyChain extends React.Component<IProps, IState> {
if (mRelatesTo && mRelatesTo['m.in_reply_to']) {
const mInReplyTo = mRelatesTo['m.in_reply_to'];
if (mInReplyTo && mInReplyTo['event_id']) return mInReplyTo['event_id'];
} else if (!SettingsStore.getValue("feature_thread") && ev.isThreadRelation) {
return ev.threadRootId;
}
}