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

Commit d793490

Browse files
authored
Fix soft crash around threads when room isn't yet in store (#8496)
1 parent a5b795c commit d793490

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/views/rooms/EventTile.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,7 @@ export class UnwrappedEventTile extends React.Component<IProps, IState> {
402402
}
403403

404404
private setupNotificationListener = (thread: Thread): void => {
405-
const room = MatrixClientPeg.get().getRoom(this.props.mxEvent.getRoomId());
406-
const notifications = RoomNotificationStateStore.instance.getThreadsRoomState(room);
405+
const notifications = RoomNotificationStateStore.instance.getThreadsRoomState(thread.room);
407406

408407
this.threadState = notifications.getThreadRoomState(thread);
409408

0 commit comments

Comments
 (0)