looked over for review
parent
705464fb51
commit
4391fb695e
|
@ -352,7 +352,7 @@ impl AsyncClient {
|
||||||
futures.push(Box::new(future));
|
futures.push(Box::new(future));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Add a callback that will be called every time the client receives a room
|
/// Add a callback that will be called every time the client receives a presence
|
||||||
/// event
|
/// event
|
||||||
///
|
///
|
||||||
/// # Arguments
|
/// # Arguments
|
||||||
|
@ -433,9 +433,9 @@ impl AsyncClient {
|
||||||
/// * `password` - The password of the user.
|
/// * `password` - The password of the user.
|
||||||
///
|
///
|
||||||
/// * `device_id` - A unique id that will be associated with this session. If
|
/// * `device_id` - A unique id that will be associated with this session. If
|
||||||
/// not given the homeserver will create one. Can be an exising
|
/// not given the homeserver will create one. Can be an existing
|
||||||
/// device_id from a previous login call. Note that this should be done
|
/// device_id from a previous login call. Note that this should be done
|
||||||
/// only if the client also holds the encryption keys for this devcie.
|
/// only if the client also holds the encryption keys for this device.
|
||||||
#[instrument(skip(password))]
|
#[instrument(skip(password))]
|
||||||
pub async fn login<S: Into<String> + std::fmt::Debug>(
|
pub async fn login<S: Into<String> + std::fmt::Debug>(
|
||||||
&mut self,
|
&mut self,
|
||||||
|
@ -462,7 +462,7 @@ impl AsyncClient {
|
||||||
Ok(response)
|
Ok(response)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Synchronise the client's state with the latest state on the server.
|
/// Synchronize the client's state with the latest state on the server.
|
||||||
///
|
///
|
||||||
/// # Arguments
|
/// # Arguments
|
||||||
///
|
///
|
||||||
|
|
|
@ -13,9 +13,6 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
use std::collections::HashMap;
|
|
||||||
use std::sync::{Arc, RwLock};
|
|
||||||
|
|
||||||
use super::User;
|
use super::User;
|
||||||
use crate::api::r0 as api;
|
use crate::api::r0 as api;
|
||||||
use crate::events::collections::all::{Event, RoomEvent, StateEvent};
|
use crate::events::collections::all::{Event, RoomEvent, StateEvent};
|
||||||
|
|
|
@ -88,5 +88,5 @@ async fn timeline() {
|
||||||
client.get_room_name("!SVkFJHzfwvuaIEawgC:localhost").await
|
client.get_room_name("!SVkFJHzfwvuaIEawgC:localhost").await
|
||||||
);
|
);
|
||||||
|
|
||||||
println!("{:#?}", &client.base_client().read().await.joined_rooms);
|
// println!("{:#?}", &client.base_client().read().await.joined_rooms);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue