sync with state store after login to set path otherwise it makes 2x the folders

master
Devin R 2020-04-27 08:10:43 -04:00
parent 199fb59a76
commit 8db05ace1e
1 changed files with 6 additions and 0 deletions

View File

@ -209,6 +209,12 @@ impl Client {
*olm = Some(OlmMachine::new(&response.user_id, &response.device_id)?); *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(()) Ok(())
} }