mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 02:35:48 +03:00
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 => {
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue