You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Remove outdated diagnostic log
The cited issue (https://github.com/vector-im/element-web/issues/11120) has since been fixed, so this "temporary" (2 years ago) logging is no longer needed.
This commit is contained in:
@@ -790,13 +790,6 @@ export default class EventTile extends React.Component<IProps, IState> {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
const eventId = this.props.mxEvent.getId();
|
const eventId = this.props.mxEvent.getId();
|
||||||
if (!eventId) {
|
|
||||||
// XXX: Temporary diagnostic logging for https://github.com/vector-im/element-web/issues/11120
|
|
||||||
console.error("EventTile attempted to get relations for an event without an ID");
|
|
||||||
// Use event's special `toJSON` method to log key data.
|
|
||||||
console.log(JSON.stringify(this.props.mxEvent, null, 4));
|
|
||||||
console.trace("Stacktrace for https://github.com/vector-im/element-web/issues/11120");
|
|
||||||
}
|
|
||||||
return this.props.getRelationsForEvent(eventId, "m.annotation", "m.reaction");
|
return this.props.getRelationsForEvent(eventId, "m.annotation", "m.reaction");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user