fixing race condition of read marker

This commit is contained in:
balzack 2025-03-01 20:40:33 -08:00
parent c0a0c46a95
commit 58ac9342b5

View File

@ -168,7 +168,6 @@ export class FocusModule implements Focus {
} else {
this.loadMore = false;
}
await this.markRead();
this.emitTopics();
} catch (err) {
this.log.warn(err);
@ -213,7 +212,6 @@ export class FocusModule implements Focus {
this.nextRevision = null;
}
await this.markRead();
this.emitTopics();
this.log.info(`topic revision: ${nextRev}`);
} catch (err) {
@ -244,6 +242,7 @@ export class FocusModule implements Focus {
}
}
this.syncing = false;
await this.markRead();
}
}