mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 02:05:45 +03:00
When selecting reply in thread on a thread response open existing thread (#8291)
This commit is contained in:
parent
391ec4c7e2
commit
59fda5273f
1 changed files with 12 additions and 1 deletions
|
@ -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,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue