add some basic TODOs

This commit is contained in:
Antoine Martin 2021-02-02 04:52:43 +01:00
parent 1679ccb759
commit 567fc1674e

View file

@ -80,6 +80,8 @@ impl EventEmitter for AutoJoinBot {
}
if let RoomState::Invited(room) = room {
// TODO: only join room if it's the room specified in the configuration
println!("Autojoining room {}", room.room_id());
let mut delay = 2;
@ -118,6 +120,7 @@ async fn login_and_sync(
let homeserver_url = Url::parse(&homeserver_url).expect("Couldn't parse the homeserver URL");
let client = Client::new_with_config(homeserver_url, client_config).unwrap();
// TODO: restore session on subsequent logins
client
.login(username, password, None, Some("autojoin bot"))
.await?;