Merge pull request #6842 from matrix-org/gsouquet/fix-19016
This commit is contained in:
commit
14c92b72b2
2 changed files with 4 additions and 2 deletions
|
@ -448,7 +448,9 @@ export default class MessagePanel extends React.Component<IProps, IState> {
|
||||||
// Always show highlighted event
|
// Always show highlighted event
|
||||||
if (this.props.highlightedEventId === mxEv.getId()) return true;
|
if (this.props.highlightedEventId === mxEv.getId()) return true;
|
||||||
|
|
||||||
if (mxEv.replyInThread
|
// Checking if the message has a "parentEventId" as we do not
|
||||||
|
// want to hide the root event of the thread
|
||||||
|
if (mxEv.replyInThread && mxEv.parentEventId
|
||||||
&& this.props.hideThreadedMessages
|
&& this.props.hideThreadedMessages
|
||||||
&& SettingsStore.getValue("feature_thread")) {
|
&& SettingsStore.getValue("feature_thread")) {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -521,7 +521,7 @@ export default class EventTile extends React.Component<IProps, IState> {
|
||||||
|
|
||||||
const thread = this.state.thread;
|
const thread = this.state.thread;
|
||||||
const room = MatrixClientPeg.get().getRoom(this.props.mxEvent.getRoomId());
|
const room = MatrixClientPeg.get().getRoom(this.props.mxEvent.getRoomId());
|
||||||
if (!thread || this.props.showThreadInfo === false) {
|
if (!thread || this.props.showThreadInfo === false || thread.length <= 1) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue