diff --git a/src/async_client.rs b/src/async_client.rs index 2901c3fc..0e01c1c0 100644 --- a/src/async_client.rs +++ b/src/async_client.rs @@ -160,10 +160,16 @@ impl AsyncClient { }) } + /// Is the client logged in. pub fn logged_in(&self) -> bool { self.base_client.read().unwrap().logged_in() } + /// The Homeserver of the client. + pub fn homeserver(&self) -> &Url { + &self.homeserver + } + pub fn add_event_callback( &mut self, mut callback: impl FnMut(Arc>, Arc>) -> C + 'static + Send,