crypto: Save the account if we create a new one.
This commit is contained in:
parent
5fd004bae5
commit
8ed1e37cef
1 changed files with 3 additions and 1 deletions
|
|
@ -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 a new issue