hide thread info when there are 0 replies

pull/21833/head
Germain Souquet 2021-09-20 12:55:57 +01:00
父节点 225380b248
当前提交 0a5e1772a5
共有 1 个文件被更改,包括 1 次插入1 次删除

查看文件

@ -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;
} }