Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
When selecting reply in thread on a thread response open existing thr…
Browse files Browse the repository at this point in the history
…ead (#8291)
  • Loading branch information
t3chguy authored Apr 12, 2022
1 parent 391ec4c commit 59fda52
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/components/views/messages/MessageActionBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
}
};

Expand Down

0 comments on commit 59fda52

Please sign in to comment.