aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/connection.cpp3
-rw-r--r--lib/keyverificationsession.cpp2
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp
index 8ca76ceb..1048884f 100644
--- a/lib/connection.cpp
+++ b/lib/connection.cpp
@@ -1006,6 +1006,9 @@ bool Connection::Private::processIfVerificationEvent(const Event& evt,
emit q->newKeyVerificationSession(*sessionIter);
return true;
},
+ [](const KeyVerificationDoneEvent&) {
+ return true;
+ },
[this](const KeyVerificationEvent& kvEvt) {
if (auto* const session =
verificationSessions.value(kvEvt.transactionId())) {
diff --git a/lib/keyverificationsession.cpp b/lib/keyverificationsession.cpp
index 3f76eac1..f5d49561 100644
--- a/lib/keyverificationsession.cpp
+++ b/lib/keyverificationsession.cpp
@@ -120,7 +120,7 @@ void KeyVerificationSession::handleEvent(const KeyVerificationEvent& baseEvent)
return true;
},
[this](const KeyVerificationMacEvent& event) {
- if (state() != WAITINGFORMAC)
+ if (state() != WAITINGFORMAC && state() != WAITINGFORVERIFICATION)
return false;
handleMac(event);
return true;