crypto: Forward cancel events to the sas object

master
Damir Jelić 2021-06-04 16:22:37 +02:00
parent 2ec8893273
commit f9fb530480
1 changed files with 4 additions and 1 deletions

View File

@ -287,7 +287,10 @@ impl VerificationMachine {
self.requests.insert(request.flow_id().as_str().to_owned(), request);
}
AnyVerificationContent::Cancel(_) => {
todo!()
if let Some(sas) = self.verifications.get_sas(flow_id.as_str()) {
// This won't produce an outgoing content
let _ = sas.receive_any_event(event.sender(), &content);
}
}
AnyVerificationContent::Ready(c) => {
if let Some(request) = self.requests.get(flow_id.as_str()) {