keep comment where it was

This commit is contained in:
Bruno Windels 2021-08-30 15:12:25 +02:00
parent 0d6ae19d99
commit 7fb5412176
1 changed files with 1 additions and 1 deletions

View File

@ -148,8 +148,8 @@ export class SyncWriter {
async _writeTimeline(timelineEvents, timeline, memberSync, currentKey, txn, log) {
const entries = [];
const updatedEntries = [];
// only create a fragment when we will really write an event
if (timelineEvents?.length) {
// only create a fragment when we will really write an event
currentKey = await this._ensureLiveFragment(currentKey, entries, timeline, txn, log);
log.set("timelineEvents", timelineEvents.length);
let timelineStateEventCount = 0;