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 let own_identity = self
.store .store
.get_user_identity(self.user_id()) .get_user_identity(self.user_id())
.await .await?
.ok()
.flatten()
.map(|i| i.own().cloned()) .map(|i| i.own().cloned())
.flatten(); .flatten();
let device_owner_identity = self.store.get_user_identity(user_id).await.ok().flatten(); let device_owner_identity = self.store.get_user_identity(user_id).await.ok().flatten();