crypto: Save the account if we create a new one.
parent
5fd004bae5
commit
8ed1e37cef
|
@ -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
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue