Skip to content

Commit 5d95387

Browse files
committed
test: remove unused adding of initial events in sliding sync test helper
1 parent bd93a9a commit 5d95387

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

crates/matrix-sdk-ui/tests/integration/timeline/sliding_sync.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -279,16 +279,6 @@ async fn timeline_test_helper(
279279
anyhow::anyhow!("Room {room_id} not found in client. Can't provide a timeline for it")
280280
})?;
281281

282-
// TODO: when the event cache handles its own cache, we can remove this.
283-
client
284-
.event_cache()
285-
.add_initial_events(
286-
room_id,
287-
sliding_sync_room.timeline_queue().iter().cloned().collect(),
288-
sliding_sync_room.prev_batch(),
289-
)
290-
.await?;
291-
292282
let timeline = Timeline::builder(&sdk_room).track_read_marker_and_receipts().build().await?;
293283

294284
Ok(timeline.subscribe().await)

0 commit comments

Comments
 (0)