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

Fix soft crash around threads when room isn't yet in store #8496

Merged
merged 1 commit into from
May 4, 2022
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
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