aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2021-11-19 21:49:46 +0100
committerTobias Fella <fella@posteo.de>2021-12-01 21:56:59 +0100
commit545852ca45fadb3ee43072763e81cbfba0366e25 (patch)
tree7ce73f618a8b922f38fff46e8443968d7fc3385a /lib
parent15e75b20d5bb9339a8b769b717db00fb5c16b050 (diff)
downloadlibquotient-545852ca45fadb3ee43072763e81cbfba0366e25.tar.gz
libquotient-545852ca45fadb3ee43072763e81cbfba0366e25.zip
Fix compilation
Diffstat (limited to 'lib')
-rw-r--r--lib/connection.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp
index 6ed116c4..95ed1eb6 100644
--- a/lib/connection.cpp
+++ b/lib/connection.cpp
@@ -2045,9 +2045,11 @@ PicklingMode Connection::picklingMode() const
void Connection::saveOlmAccount()
{
qCDebug(E2EE) << "Saving olm account";
+#ifdef Quotient_E2EE_ENABLED
auto pickle = d->olmAccount->pickle(d->picklingMode);
AccountSettings(d->data->userId()).setEncryptionAccountPickle(std::get<QByteArray>(pickle));
//TODO handle errors
+#endif
}
QString Connection::e2eeDataDir() const
@@ -2062,6 +2064,7 @@ QString Connection::e2eeDataDir() const
return path;
}
+#ifdef Quotient_E2EE_ENABLED
QJsonObject Connection::decryptNotification(const QJsonObject &notification)
{
auto room = provideRoom(notification["room_id"].toString());
@@ -2072,3 +2075,4 @@ QJsonObject Connection::decryptNotification(const QJsonObject &notification)
}
return decrypted->fullJson();
}
+#endif