File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -367,6 +367,26 @@ export class Thread extends ReadReceipt<ThreadEmittedEvents, ThreadEventHandlerM
367
367
this . timelineSet . relations ?. aggregateParentEvent ( event ) ;
368
368
this . timelineSet . relations ?. aggregateChildEvent ( event , this . timelineSet ) ;
369
369
return ;
370
+ } else if ( this . initialEventsFetched ) {
371
+ // If initial events have not been fetched, we are OK to throw away
372
+ // this event, because we are about to fetch all the events for this
373
+ // thread from the server.
374
+ //
375
+ // If not, this looks like a bug - we should always add the event to
376
+ // the thread. See https://github.com/vector-im/element-web/issues/26254
377
+ logger . warn (
378
+ `Not adding event ${ event . getId ( ) } to thread timeline!
379
+ isNewestReply=${ isNewestReply }
380
+ event.localTimestamp=${ event . localTimestamp }
381
+ !!lastReply=${ ! ! lastReply }
382
+ lastReply?.getId()=${ lastReply ?. getId ( ) }
383
+ lastReply?.localTimestamp=${ lastReply ?. localTimestamp }
384
+ toStartOfTimeline=${ toStartOfTimeline }
385
+ Thread.hasServerSideSupport=${ Thread . hasServerSideSupport }
386
+ event.isRelation(RelationType.Annotation)=${ event . isRelation ( RelationType . Annotation ) }
387
+ event.isRelation(RelationType.Replace)=${ event . isRelation ( RelationType . Replace ) }
388
+ ` ,
389
+ ) ;
370
390
}
371
391
372
392
if (
You can’t perform that action at this time.
0 commit comments