crypto: Save the account if we create a new one.

master
Damir Jelić 2020-10-23 11:17:37 +02:00
parent 5fd004bae5
commit 8ed1e37cef
1 changed files with 3 additions and 1 deletions

View File

@ -222,7 +222,9 @@ impl OlmMachine {
} }
None => { None => {
debug!("Creating a new account"); debug!("Creating a new account");
ReadOnlyAccount::new(&user_id, &device_id) let account = ReadOnlyAccount::new(&user_id, &device_id);
store.save_account(account.clone()).await?;
account
} }
}; };