aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/connection.cpp2
1 files changed, 2 insertions, 0 deletions
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 =