client: Simplify the auto key-claiming invocation

master
Damir Jelić 2021-01-21 14:01:49 +01:00
parent ef2f20eb97
commit 948c811d4b
1 changed files with 3 additions and 1 deletions

View File

@ -1743,7 +1743,9 @@ impl Client {
#[cfg(feature = "encryption")]
{
if let Err(e) = self.claim_one_time_keys(&mut [].iter()).await {
// This is needed because sometimes we need to automatically
// claim some one-time keys to unwedge an exisitng Olm session.
if let Err(e) = self.claim_one_time_keys([].iter()).await {
warn!("Error while claiming one-time keys {:?}", e);
}