crypto: Log when we receive room keys
parent
5ca40b9893
commit
2a09e588f3
|
@ -664,6 +664,15 @@ impl KeyRequestMachine {
|
||||||
Some(session)
|
Some(session)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if let Some(s) = &session {
|
||||||
|
info!(
|
||||||
|
"Received a forwarded room key from {} for room {} with session id {}",
|
||||||
|
event.sender,
|
||||||
|
s.room_id(),
|
||||||
|
s.session_id()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
Ok((
|
Ok((
|
||||||
Some(AnyToDeviceEvent::ForwardedRoomKey(event.clone())),
|
Some(AnyToDeviceEvent::ForwardedRoomKey(event.clone())),
|
||||||
session,
|
session,
|
||||||
|
|
|
@ -598,6 +598,13 @@ impl OlmMachine {
|
||||||
&event.content.room_id,
|
&event.content.room_id,
|
||||||
session_key,
|
session_key,
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
|
info!(
|
||||||
|
"Received a new room key from {} for room {} with session id {}",
|
||||||
|
event.sender,
|
||||||
|
event.content.room_id,
|
||||||
|
session.session_id()
|
||||||
|
);
|
||||||
let event = AnyToDeviceEvent::RoomKey(event.clone());
|
let event = AnyToDeviceEvent::RoomKey(event.clone());
|
||||||
Ok((Some(event), Some(session)))
|
Ok((Some(event), Some(session)))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue