mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-14 19:16:02 -04:00
refactor(sdk): Make base_client field of Client private
This commit is contained in:
committed by
Jonas Platte
parent
b769827313
commit
08760bd4c0
@@ -145,7 +145,7 @@ pub(crate) struct ClientInner {
|
||||
/// The underlying HTTP client.
|
||||
http_client: HttpClient,
|
||||
/// User session data.
|
||||
pub(crate) base_client: BaseClient,
|
||||
base_client: BaseClient,
|
||||
/// The Matrix versions the server supports (well-known ones only)
|
||||
server_versions: OnceCell<Box<[MatrixVersion]>>,
|
||||
/// Locks making sure we only have one group session sharing request in
|
||||
|
||||
@@ -904,7 +904,7 @@ mod tests {
|
||||
)
|
||||
.build_sync_response();
|
||||
|
||||
client.inner.base_client.receive_sync_response(response).await.unwrap();
|
||||
client.base_client().receive_sync_response(response).await.unwrap();
|
||||
|
||||
let room = client.get_joined_room(room_id).expect("Room should exist");
|
||||
assert!(room.is_encrypted());
|
||||
|
||||
Reference in New Issue
Block a user