pub(crate) async fn login_and_sync( homeserver_url: String, username: String, password: String, image: Vec<u8>, ) -> Result<()>