fix thread timeline reload on fist message

This commit is contained in:
Ajay Bura 2026-08-15 21:26:01 +05:30
commit de91c6ed76
2 changed files with 4 additions and 1 deletions

View file

@ -140,6 +140,7 @@ export class ThreadTimeline implements TimelineView, Disposable {
if (!meta || !latestEvent) return;
// TODO: need session userId to find current user participation;
// we do not use that flag yet.
const newMeta = new ThreadMeta(
meta.rootEvent,
latestEvent,

View file

@ -41,7 +41,9 @@ export class TimelineBatchManager {
}
const newPrev =
!prev.token && messages.events.length === 0 ? new BatchInfo(prevToken, !prevToken) : prev;
!prev.end && !prev.token && messages.events.length === 0
? new BatchInfo(prevToken, !prevToken)
: prev;
const newBatch = new MessageBatch(
id,