aboutsummaryrefslogtreecommitdiff
path: root/autotests/testolmsession.cpp
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-05-15 22:08:09 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-05-16 10:42:10 +0200
commita3486fd0e9786c47564ce8173a2e4039135b10f9 (patch)
tree15a9eb75e4007b078b5e01bd57f3c2e50cbf4f0b /autotests/testolmsession.cpp
parent1fe8dc00de4d9bb7072ec9677ec7f8e73e4fc769 (diff)
downloadlibquotient-a3486fd0e9786c47564ce8173a2e4039135b10f9.tar.gz
libquotient-a3486fd0e9786c47564ce8173a2e4039135b10f9.zip
Simplify QOlmSession::matchesInboundSession*()
There's no particular use in letting `QOlmError` out, only to confirm that, well, `QOlmError` is just another form of no-match.
Diffstat (limited to 'autotests/testolmsession.cpp')
-rw-r--r--autotests/testolmsession.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/autotests/testolmsession.cpp b/autotests/testolmsession.cpp
index 5436c392..2674b60b 100644
--- a/autotests/testolmsession.cpp
+++ b/autotests/testolmsession.cpp
@@ -45,7 +45,7 @@ void TestOlmSession::olmEncryptDecrypt()
const auto encrypted = outboundSession->encrypt("Hello world!");
if (encrypted.type() == QOlmMessage::PreKey) {
QOlmMessage m(encrypted); // clone
- QVERIFY(std::get<bool>(inboundSession->matchesInboundSession(m)));
+ QVERIFY(inboundSession->matchesInboundSession(m));
}
const auto decrypted = std::get<QString>(inboundSession->decrypt(encrypted));