mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
remove logging
This commit is contained in:
parent
6bdf44d114
commit
0524f06722
@ -15,19 +15,14 @@ export default class GapWriter {
|
|||||||
let neighbourFragmentEntry;
|
let neighbourFragmentEntry;
|
||||||
const neighbourEventId = await txn.timelineEvents.findFirstOccurringEventId(this._roomId, eventIds);
|
const neighbourEventId = await txn.timelineEvents.findFirstOccurringEventId(this._roomId, eventIds);
|
||||||
if (neighbourEventId) {
|
if (neighbourEventId) {
|
||||||
console.log("_findOverlappingEvents neighbourEventId", neighbourEventId);
|
|
||||||
// trim overlapping events
|
// trim overlapping events
|
||||||
const neighbourEventIndex = events.findIndex(e => e.event_id === neighbourEventId);
|
const neighbourEventIndex = events.findIndex(e => e.event_id === neighbourEventId);
|
||||||
nonOverlappingEvents = events.slice(0, neighbourEventIndex);
|
nonOverlappingEvents = events.slice(0, neighbourEventIndex);
|
||||||
// get neighbour fragment to link it up later on
|
// get neighbour fragment to link it up later on
|
||||||
const neighbourEvent = await txn.timelineEvents.getByEventId(this._roomId, neighbourEventId);
|
const neighbourEvent = await txn.timelineEvents.getByEventId(this._roomId, neighbourEventId);
|
||||||
console.log("neighbourEvent", {neighbourEvent, nonOverlappingEvents, events, neighbourEventIndex});
|
|
||||||
const neighbourFragment = await txn.timelineFragments.get(this._roomId, neighbourEvent.fragmentId);
|
const neighbourFragment = await txn.timelineFragments.get(this._roomId, neighbourEvent.fragmentId);
|
||||||
neighbourFragmentEntry = fragmentEntry.createNeighbourEntry(neighbourFragment);
|
neighbourFragmentEntry = fragmentEntry.createNeighbourEntry(neighbourFragment);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("_findOverlappingEvents events", events, nonOverlappingEvents);
|
|
||||||
|
|
||||||
return {nonOverlappingEvents, neighbourFragmentEntry};
|
return {nonOverlappingEvents, neighbourFragmentEntry};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user