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

pull/21833/head
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
1 changed files with 12 additions and 1 deletions

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,
});
}
};