mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-15 19:45:34 -04:00
chore(sdk): Rename SlidingSyncRoom pub(crate) from to pub(super) new.
First off, `SlidingSyncRoom.from` doesn't need to be visible to the entire crate, only to `crate::sliding_sync. Second, it's a constructor, so let's call it `new`.
This commit is contained in:
@@ -1005,7 +1005,7 @@ impl SlidingSync {
|
||||
|
||||
rooms_map.insert(
|
||||
id.clone(),
|
||||
SlidingSyncRoom::from(self.client.clone(), id.clone(), room_data, timeline),
|
||||
SlidingSyncRoom::new(self.client.clone(), id.clone(), room_data, timeline),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ impl SlidingSyncRoom {
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn from(
|
||||
pub(super) fn new(
|
||||
client: Client,
|
||||
room_id: OwnedRoomId,
|
||||
mut inner: v4::SlidingSyncRoom,
|
||||
|
||||
Reference in New Issue
Block a user