From b0e1455989405ef46eb6d9ed2cd559a1164d04f4 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Fri, 25 Feb 2022 16:03:59 +0100 Subject: Ifdef --- lib/connection.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/connection.cpp b/lib/connection.cpp index 4c614176..66df1e43 100644 --- a/lib/connection.cpp +++ b/lib/connection.cpp @@ -1829,10 +1829,12 @@ void Connection::saveState() const QJsonObject { { QStringLiteral("events"), accountDataEvents } }); } +#ifdef Quotient_E2EE_ENABLED { QJsonObject keysJson = toJson(d->oneTimeKeysCount); rootObj.insert(QStringLiteral("device_one_time_keys_count"), keysJson); } +#endif #if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) const auto data = -- cgit v1.2.3