crypto: Don't ignore store errors when fetching the identities.

master
Damir Jelić 2020-09-04 12:44:03 +02:00
parent adf8905d9f
commit 53fec7a87e
1 changed files with 1 additions and 3 deletions

View File

@ -1519,9 +1519,7 @@ impl OlmMachine {
let own_identity = self
.store
.get_user_identity(self.user_id())
.await
.ok()
.flatten()
.await?
.map(|i| i.own().cloned())
.flatten();
let device_owner_identity = self.store.get_user_identity(user_id).await.ok().flatten();