When selecting reply in thread on a thread response open existing thread (#8291)

This commit is contained in:
Michael Telatynski 2022-04-12 14:42:47 +01:00 committed by GitHub
parent 391ec4c7e2
commit 59fda5273f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -232,8 +232,19 @@ export default class MessageActionBar extends React.PureComponent<IMessageAction
action: Action.ViewUserSettings,
initialTabId: UserTab.Labs,
});
} else if (this.props.mxEvent.isThreadRelation) {
showThread({
rootEvent: this.props.mxEvent.getThread().rootEvent,
initialEvent: this.props.mxEvent,
scroll_into_view: true,
highlighted: true,
push: isCard,
});
} else {
showThread({ rootEvent: this.props.mxEvent, push: isCard });
showThread({
rootEvent: this.props.mxEvent,
push: isCard,
});
}
};