mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-11-20 03:25:52 +01:00
Don't log entire events
Events can be cyclic objects because of relations. i.e if event A is somehow related to event B (maybe by m.refernce), we maintain a reference from A to B and also from B to A. This can break serialization algos (like we JSON.stringiy).
This commit is contained in:
parent
0f27b68a37
commit
7c2ffcb8de
@ -154,7 +154,6 @@ export class RoomChannel extends Disposables implements IChannel {
|
||||
}
|
||||
console.log("entry", entry);
|
||||
await this.log.wrap("RoomChannel.handleRoomMessage", async (log) => {
|
||||
log.log({ l: "entry", entry });
|
||||
if (!this.id) {
|
||||
throw new Error("Couldn't find event-id of request message!");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user