mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-06 14:38:21 +00: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;
|
if (this.unmounted) return;
|
||||||
|
|
||||||
// ignore events for other rooms
|
// 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,
|
// we could skip an update if the event isn't in our timeline,
|
||||||
// but that's probably an early optimisation.
|
// but that's probably an early optimisation.
|
||||||
|
|||||||
Reference in New Issue
Block a user