client: Simplify the auto key-claiming invocation

This commit is contained in:
Damir Jelić 2021-01-21 14:01:49 +01:00
parent ef2f20eb97
commit 948c811d4b

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);
}