Fix soft crash around threads when room isn't yet in store (#8496)
This commit is contained in:
parent
a5b795c934
commit
d79349029a
1 changed files with 1 additions and 2 deletions
|
@ -402,8 +402,7 @@ export class UnwrappedEventTile extends React.Component<IProps, IState> {
|
||||||
}
|
}
|
||||||
|
|
||||||
private setupNotificationListener = (thread: Thread): void => {
|
private setupNotificationListener = (thread: Thread): void => {
|
||||||
const room = MatrixClientPeg.get().getRoom(this.props.mxEvent.getRoomId());
|
const notifications = RoomNotificationStateStore.instance.getThreadsRoomState(thread.room);
|
||||||
const notifications = RoomNotificationStateStore.instance.getThreadsRoomState(room);
|
|
||||||
|
|
||||||
this.threadState = notifications.getThreadRoomState(thread);
|
this.threadState = notifications.getThreadRoomState(thread);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue