crypto: Verify user identities when we're the first one to confirm as well.
parent
c3c6428717
commit
b3941ca254
|
@ -189,7 +189,8 @@ impl VerificationMachine {
|
|||
if let Some(s) = self.get_sas(&e.content.transaction_id) {
|
||||
self.receive_event_helper(&s, event);
|
||||
|
||||
if s.is_done() && !s.mark_device_as_verified().await? {
|
||||
if s.is_done() {
|
||||
if !s.mark_device_as_verified().await? {
|
||||
if let Some(r) = s.cancel() {
|
||||
self.outgoing_to_device_messages.insert(
|
||||
r.0,
|
||||
|
@ -199,6 +200,9 @@ impl VerificationMachine {
|
|||
},
|
||||
);
|
||||
}
|
||||
} else {
|
||||
s.mark_identity_as_verified().await?;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue