From 567fc1674e42a78f3f2fb37a6abae36083a9730d Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Tue, 2 Feb 2021 04:52:43 +0100 Subject: [PATCH] add some basic TODOs --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index f8cf25d..f69c210 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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?;