Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix appearance settings crash (#7131)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonBrandner authored Nov 12, 2021
1 parent a057ec1 commit 365950e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/views/rooms/EventTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,7 @@ export default class EventTile extends React.Component<IProps, IState> {
|| this.state.actionBarFocused);

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
const ts = this.props.tileShape !== TileShape.ThreadPanel
Expand Down

0 comments on commit 365950e

Please sign in to comment.