From 365950e3667002e5044ea08ab2450c63b250054b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Fri, 12 Nov 2021 18:38:04 +0100 Subject: [PATCH] Fix appearance settings crash (#7131) --- src/components/views/rooms/EventTile.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/EventTile.tsx b/src/components/views/rooms/EventTile.tsx index dd181e7683..20d9cdf75c 100644 --- a/src/components/views/rooms/EventTile.tsx +++ b/src/components/views/rooms/EventTile.tsx @@ -1166,7 +1166,7 @@ export default class EventTile extends React.Component { || 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