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

Fix appearance settings crash #7131

Merged
merged 1 commit into from
Nov 12, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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