Fix notif panel exception around accessing roomId of undefined (#9546)
parent
5ca9accce2
commit
be5a8ca3b9
|
@ -798,7 +798,7 @@ class TimelinePanel extends React.Component<IProps, IState> {
|
|||
if (this.unmounted) return;
|
||||
|
||||
// ignore events for other rooms
|
||||
if (replacedEvent.getRoomId() !== this.props.timelineSet.room.roomId) return;
|
||||
if (replacedEvent.getRoomId() !== this.props.timelineSet.room?.roomId) return;
|
||||
|
||||
// we could skip an update if the event isn't in our timeline,
|
||||
// but that's probably an early optimisation.
|
||||
|
|
Loading…
Reference in New Issue