aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.cpp
diff options
context:
space:
mode:
authorTobias Fella <fella@posteo.de>2021-06-12 23:04:17 +0200
committerTobias Fella <fella@posteo.de>2021-12-01 21:56:59 +0100
commit703b3f89ef54d9d40c9117788d0920b6b745bd62 (patch)
tree800e2e706930a0c2512e4517e16246a2d30d79f9 /lib/connection.cpp
parenteaf23c0f6bb97fdf16631296ab7016447a99c4f2 (diff)
downloadlibquotient-703b3f89ef54d9d40c9117788d0920b6b745bd62.tar.gz
libquotient-703b3f89ef54d9d40c9117788d0920b6b745bd62.zip
Implement (meg)olm key caching, megolm decrypting, EncryptedEvent
decryption, handling of encrypted redactions and replies
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r--lib/connection.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp
index 98686ed0..4a220e0d 100644
--- a/lib/connection.cpp
+++ b/lib/connection.cpp
@@ -464,6 +464,7 @@ void Connection::Private::completeSetup(const QString& mxId)
AccountSettings(data->userId()).setEncryptionAccountPickle(std::get<QByteArray>(pickle));
//TODO handle errors
});
+ encryptionManager = new EncryptionManager(q);
if (accountSettings.encryptionAccountPickle().isEmpty()) {
// create new account and save unpickle data
@@ -1891,9 +1892,9 @@ void Connection::Private::saveDevicesList()
QFile outFile { q->stateCacheDir().filePath("deviceslist.json") };
if (!outFile.open(QFile::WriteOnly)) {
- qCWarning(MAIN) << "Error opening" << outFile.fileName() << ":"
+ qCWarning(E2EE) << "Error opening" << outFile.fileName() << ":"
<< outFile.errorString();
- qCWarning(MAIN) << "Caching the rooms state disabled";
+ qCWarning(E2EE) << "Caching the rooms state disabled";
cacheState = false;
return;
}