pub(crate) async fn login_and_sync(homeserver_url: String) -> Result<()>
Log in to the given homeserver and sync.