aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-12-28 19:18:34 +0100
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-12-29 10:31:21 +0100
commit62feba453b9642d24084f73636ea8d6f1e3278bc (patch)
treefa5b1059ee2439d709878fc9aec743d3808f8596 /lib/connection.cpp
parentf10b3fadc2483986e372418725d4e50dbf85075c (diff)
downloadlibquotient-62feba453b9642d24084f73636ea8d6f1e3278bc.tar.gz
libquotient-62feba453b9642d24084f73636ea8d6f1e3278bc.zip
Connection: fix FTBFS with Quotient_E2EE_ENABLED
(cherry picked from commit 0f974c0f96f29035ee766e8913504fed4a4903a5)
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r--lib/connection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp
index 677a346b..9dad3c22 100644
--- a/lib/connection.cpp
+++ b/lib/connection.cpp
@@ -440,7 +440,7 @@ void Connection::Private::completeSetup(const QString& mxId)
#ifndef Quotient_E2EE_ENABLED
qCWarning(E2EE) << "End-to-end encryption (E2EE) support is turned off.";
#else // Quotient_E2EE_ENABLED
- AccountSettings accountSettings(userId);
+ AccountSettings accountSettings(data->userId());
encryptionManager.reset(
new EncryptionManager(accountSettings.encryptionAccountPickle()));
if (accountSettings.encryptionAccountPickle().isEmpty()) {