Merge remote-tracking branch 'upstream/develop' into task/structures-ts
This commit is contained in:
commit
67d328c7fd
1 changed files with 13 additions and 8 deletions
|
@ -1192,14 +1192,19 @@ export default class EventTile extends React.Component<IProps, IState> {
|
||||||
}
|
}
|
||||||
|
|
||||||
default: {
|
default: {
|
||||||
const thread = ReplyThread.makeThread(
|
let thread;
|
||||||
this.props.mxEvent,
|
// When the "showHiddenEventsInTimeline" lab is enabled,
|
||||||
this.props.onHeightChanged,
|
// avoid showing replies for hidden events (events without tiles)
|
||||||
this.props.permalinkCreator,
|
if (haveTileForEvent(this.props.mxEvent)) {
|
||||||
this.replyThread,
|
thread = ReplyThread.makeThread(
|
||||||
this.props.layout,
|
this.props.mxEvent,
|
||||||
this.props.alwaysShowTimestamps || this.state.hover,
|
this.props.onHeightChanged,
|
||||||
);
|
this.props.permalinkCreator,
|
||||||
|
this.replyThread,
|
||||||
|
this.props.layout,
|
||||||
|
this.props.alwaysShowTimestamps || this.state.hover,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
const isOwnEvent = this.props.mxEvent?.sender?.userId === MatrixClientPeg.get().getUserId();
|
const isOwnEvent = this.props.mxEvent?.sender?.userId === MatrixClientPeg.get().getUserId();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue