mirror of https://github.com/vector-im/riot-web
Add diagnostic log to catch events without an ID
This adds some temporary logging to investigate https://github.com/vector-im/riot-web/issues/11120.pull/21833/head
parent
54cea6a5e3
commit
3775dc0943
|
@ -495,6 +495,12 @@ module.exports = createReactClass({
|
||||||
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/riot-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));
|
||||||
|
}
|
||||||
return this.props.getRelationsForEvent(eventId, "m.annotation", "m.reaction");
|
return this.props.getRelationsForEvent(eventId, "m.annotation", "m.reaction");
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue