mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-13 10:35:41 -04:00
crypto: Only go into a done verification request if we're in the correct state
This commit is contained in:
@@ -521,12 +521,12 @@ impl InnerRequest {
|
||||
|
||||
fn receive_done(&mut self, content: &DoneContent) {
|
||||
*self = InnerRequest::Done(match self {
|
||||
InnerRequest::Created(s) => s.clone().into_done(content),
|
||||
InnerRequest::Requested(s) => s.clone().into_done(content),
|
||||
InnerRequest::Ready(s) => s.clone().into_done(content),
|
||||
InnerRequest::Passive(s) => s.clone().into_done(content),
|
||||
InnerRequest::Done(s) => s.clone().into_done(content),
|
||||
InnerRequest::Cancelled(_) => return,
|
||||
InnerRequest::Done(_)
|
||||
| InnerRequest::Created(_)
|
||||
| InnerRequest::Requested(_)
|
||||
| InnerRequest::Cancelled(_) => return,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user