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

Commit 365950e

Browse files
Fix appearance settings crash (#7131)
1 parent a057ec1 commit 365950e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/views/rooms/EventTile.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,7 @@ export default class EventTile extends React.Component<IProps, IState> {
11661166
|| this.state.actionBarFocused);
11671167

11681168
const room = MatrixClientPeg.get().getRoom(this.props.mxEvent.getRoomId());
1169-
const thread = room.findThreadForEvent?.(this.props.mxEvent);
1169+
const thread = room?.findThreadForEvent?.(this.props.mxEvent);
11701170

11711171
// Thread panel shows the timestamp of the last reply in that thread
11721172
const ts = this.props.tileShape !== TileShape.ThreadPanel

0 commit comments

Comments
 (0)