hide thread info when there are 0 replies

This commit is contained in:
Germain Souquet 2021-09-20 12:55:57 +01:00
parent 225380b248
commit 0a5e1772a5

View file

@ -521,7 +521,7 @@ export default class EventTile extends React.Component<IProps, IState> {
const thread = this.state.thread;
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;
}