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

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

Merged
merged 1 commit into from
Apr 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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