From 8db05ace1e36e7c603e3170a02c7ac0f90d72199 Mon Sep 17 00:00:00 2001 From: Devin R Date: Mon, 27 Apr 2020 08:10:43 -0400 Subject: [PATCH] sync with state store after login to set path otherwise it makes 2x the folders --- src/base_client.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/base_client.rs b/src/base_client.rs index 83c76585..d4504f80 100644 --- a/src/base_client.rs +++ b/src/base_client.rs @@ -209,6 +209,12 @@ impl Client { *olm = Some(OlmMachine::new(&response.user_id, &response.device_id)?); } + if let Some(store) = self.state_store.as_ref() { + store + .store_client_state(ClientState::from_base_client(self)) + .await?; + } + Ok(()) }