aboutsummaryrefslogtreecommitdiff
path: root/autotests
diff options
context:
space:
mode:
Diffstat (limited to 'autotests')
-rw-r--r--autotests/testolmaccount.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/autotests/testolmaccount.cpp b/autotests/testolmaccount.cpp
index 60f4ab38..4b32393d 100644
--- a/autotests/testolmaccount.cpp
+++ b/autotests/testolmaccount.cpp
@@ -404,7 +404,7 @@ void TestOlmAccount::claimKeys()
claimKeysJob->oneTimeKeys().value(userId).value(deviceId);
for (auto it = oneTimeKeys.begin(); it != oneTimeKeys.end(); ++it) {
if (it.key().startsWith(SignedCurve25519Key)
- && it.value().isObject())
+ && std::holds_alternative<SignedOneTimeKey>(it.value()))
return;
}
QFAIL("The claimed one time key is not in /claim response");