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

Commit

Permalink
Fix soft crash around threads when room isn't yet in store (#8496)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored May 4, 2022
1 parent a5b795c commit d793490
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/views/rooms/EventTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,7 @@ export class UnwrappedEventTile extends React.Component<IProps, IState> {
}

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

this.threadState = notifications.getThreadRoomState(thread);

Expand Down

0 comments on commit d793490

Please sign in to comment.