crypto: Log when we're not serving a key request because of a missing session.

master
Damir Jelić 2020-10-07 14:22:13 +02:00
parent 17d23eb9e5
commit 9a838abd67
1 changed files with 6 additions and 0 deletions

View File

@ -367,6 +367,12 @@ impl KeyRequestMachine {
if let Err(e) = self.share_session(&session, &device).await {
match e {
OlmError::MissingSession => {
info!(
"Key request from {} {} is missing an Olm session, \
putting the request in the wait queue",
device.user_id(),
device.device_id()
);
self.handle_key_share_without_session(device, event);
return Ok(());
}