aboutsummaryrefslogtreecommitdiff
path: root/lib/encryptionmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/encryptionmanager.cpp')
-rw-r--r--lib/encryptionmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/encryptionmanager.cpp b/lib/encryptionmanager.cpp
index e8cc7b3a..5c1750c9 100644
--- a/lib/encryptionmanager.cpp
+++ b/lib/encryptionmanager.cpp
@@ -71,7 +71,7 @@ public:
}
for(const auto &senderKey : json["sessions"].toObject().keys()) {
auto pickle = json["sessions"].toObject()[senderKey].toString();
- auto sessionResult = QOlmSession::unpickle(pickle.toLatin1(), Unencrypted{});
+ auto sessionResult = QOlmSession::unpickle(pickle.toLatin1(), static_cast<Connection *>(q->parent())->picklingMode());
if(std::holds_alternative<QOlmError>(sessionResult)) {
qCWarning(E2EE) << "Failed to unpickle olm session";
continue;
@@ -97,7 +97,7 @@ public:
{
QJsonObject sessionsJson;
for (const auto &session : sessions) {
- auto pickleResult = session.second->pickle(Unencrypted{});
+ auto pickleResult = session.second->pickle(static_cast<Connection *>(q->parent())->picklingMode());
if(std::holds_alternative<QOlmError>(pickleResult)) {
qCWarning(E2EE) << "Failed to pickle session";
continue;