Skip to content

Commit f5d7d26

Browse files
committed
chore(ui): Rename Timeline::subscribe to subscribe_raw.
This patch renames the (test only) `Timeline::subscribe` method to `Timeline::subscribe_raw`.
1 parent fb031ea commit f5d7d26

File tree

2 files changed

+2
-2
lines changed
  • crates/matrix-sdk-ui/src/timeline

2 files changed

+2
-2
lines changed

crates/matrix-sdk-ui/src/timeline/controller/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ impl<P: RoomDataProvider> TimelineController<P> {
507507
}
508508

509509
#[cfg(test)]
510-
pub(super) async fn subscribe(
510+
pub(super) async fn subscribe_raw(
511511
&self,
512512
) -> (
513513
Vector<Arc<TimelineItem>>,

crates/matrix-sdk-ui/src/timeline/tests/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ impl TestTimeline {
155155
}
156156

157157
async fn subscribe(&self) -> impl Stream<Item = VectorDiff<Arc<TimelineItem>>> {
158-
let (items, stream) = self.controller.subscribe().await;
158+
let (items, stream) = self.controller.subscribe_raw().await;
159159
assert_eq!(items.len(), 0, "Please subscribe to TestTimeline before adding items to it");
160160
stream
161161
}

0 commit comments

Comments
 (0)