crypto: Only send cancellations to other devices if we're the requester
parent
909cd42ac1
commit
ff8089912e
|
@ -579,10 +579,12 @@ impl VerificationRequest {
|
||||||
let mut inner = self.inner.lock().unwrap();
|
let mut inner = self.inner.lock().unwrap();
|
||||||
inner.cancel(false, content.cancel_code());
|
inner.cancel(false, content.cancel_code());
|
||||||
|
|
||||||
if let Some(request) =
|
if self.we_started() {
|
||||||
self.cancel_for_other_devices(content.cancel_code().to_owned(), None)
|
if let Some(request) =
|
||||||
{
|
self.cancel_for_other_devices(content.cancel_code().to_owned(), None)
|
||||||
self.verification_cache.add_verification_request(request.into());
|
{
|
||||||
|
self.verification_cache.add_verification_request(request.into());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue