diff --git a/matrix_sdk_crypto/src/machine.rs b/matrix_sdk_crypto/src/machine.rs index ba381ee8..cb80a008 100644 --- a/matrix_sdk_crypto/src/machine.rs +++ b/matrix_sdk_crypto/src/machine.rs @@ -222,7 +222,9 @@ impl OlmMachine { } None => { 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 } };