@@ -544,6 +544,7 @@ impl TimelineStateTransaction<'_> {
544544 } ;
545545
546546 // Remember the event before returning prematurely.
547+ // See [`TimelineMetadata::all_remote_events`].
547548 self . add_or_update_remote_event (
548549 event_meta,
549550 position,
@@ -582,6 +583,7 @@ impl TimelineStateTransaction<'_> {
582583 } ;
583584
584585 // Remember the event before returning prematurely.
586+ // See [`TimelineMetadata::all_remote_events`].
585587 self . add_or_update_remote_event (
586588 event_meta,
587589 position,
@@ -607,6 +609,7 @@ impl TimelineStateTransaction<'_> {
607609 } ;
608610
609611 // Remember the event.
612+ // See [`TimelineMetadata::all_remote_events`].
610613 self . add_or_update_remote_event ( event_meta, position, room_data_provider, settings) . await ;
611614
612615 let sender_profile = room_data_provider. profile_from_user_id ( & sender) . await ;
@@ -918,6 +921,9 @@ pub(in crate::timeline) struct TimelineMetadata {
918921
919922 /// List of all the remote events as received in the timeline, even the ones
920923 /// that are discarded in the timeline items.
924+ ///
925+ /// This is useful to get this for the moment as it helps the `Timeline` to
926+ /// compute read receipts and read markers.
921927 pub all_remote_events : VecDeque < EventMeta > ,
922928
923929 /// State helping matching reactions to their associated events, and
0 commit comments