mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
only log and clear when actually needed
This commit is contained in:
parent
e1821b1753
commit
8208464653
@ -235,7 +235,7 @@ export class GapWriter {
|
|||||||
nonOverlappingEvents,
|
nonOverlappingEvents,
|
||||||
neighbourFragmentEntry
|
neighbourFragmentEntry
|
||||||
} = await this._findOverlappingEvents(fragmentEntry, chunk, txn, log);
|
} = await this._findOverlappingEvents(fragmentEntry, chunk, txn, log);
|
||||||
if (!neighbourFragmentEntry && nonOverlappingEvents.length === 0) {
|
if (!neighbourFragmentEntry && nonOverlappingEvents.length === 0 && typeof end === "string") {
|
||||||
log.log("hit #160, clearing token", log.level.Warn);
|
log.log("hit #160, clearing token", log.level.Warn);
|
||||||
end = null;
|
end = null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user