verificationhelper: don't move state to done until both devices have sent the done event

Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
Sumner Evans 2024-05-24 12:46:56 -06:00
commit 2e50f99e52
No known key found for this signature in database

View file

@ -755,9 +755,9 @@ func (vh *VerificationHelper) onVerificationDone(ctx context.Context, txn *verif
return
}
txn.VerificationState = verificationStateDone
txn.ReceivedTheirDone = true
if txn.SentOurDone {
txn.VerificationState = verificationStateDone
vh.verificationDone(ctx, txn.TransactionID)
}
}