Fix appearance settings crash (#7131)
This commit is contained in:
parent
a057ec18ca
commit
365950e366
1 changed files with 1 additions and 1 deletions
|
@ -1166,7 +1166,7 @@ export default class EventTile extends React.Component<IProps, IState> {
|
||||||
|| this.state.actionBarFocused);
|
|| this.state.actionBarFocused);
|
||||||
|
|
||||||
const room = MatrixClientPeg.get().getRoom(this.props.mxEvent.getRoomId());
|
const room = MatrixClientPeg.get().getRoom(this.props.mxEvent.getRoomId());
|
||||||
const thread = room.findThreadForEvent?.(this.props.mxEvent);
|
const thread = room?.findThreadForEvent?.(this.props.mxEvent);
|
||||||
|
|
||||||
// Thread panel shows the timestamp of the last reply in that thread
|
// Thread panel shows the timestamp of the last reply in that thread
|
||||||
const ts = this.props.tileShape !== TileShape.ThreadPanel
|
const ts = this.props.tileShape !== TileShape.ThreadPanel
|
||||||
|
|
Loading…
Reference in a new issue