You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-12-05 15:22:09 +03:00
Fix notif panel exception around accessing roomId of undefined (#9546)
This commit is contained in:
committed by
GitHub
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.
|
||||
|
||||
Reference in New Issue
Block a user