diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-03-14 20:28:51 +0100 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-03-14 20:28:51 +0100 |
commit | a0008f808859ee491bf0a1bc683748a42c5e209a (patch) | |
tree | 0a6ebf94018ca6e87d5cf8408d16fba101b5d136 /lib/connection.cpp | |
parent | 4102144290312ebed7d4af69dd640835275a9675 (diff) | |
download | libquotient-a0008f808859ee491bf0a1bc683748a42c5e209a.tar.gz libquotient-a0008f808859ee491bf0a1bc683748a42c5e209a.zip |
Connection: minor cleanup
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r-- | lib/connection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp index 1989050e..b0ab5bfe 100644 --- a/lib/connection.cpp +++ b/lib/connection.cpp @@ -317,7 +317,7 @@ void Connection::doConnectToServer(const QString& user, const QString& password, d->connectWithToken(loginJob->userId(), loginJob->accessToken(), loginJob->deviceId()); #ifndef Quotient_E2EE_ENABLED - qCWarning(E2EE) << "End-to-end encryption (E2EE) support is turned off."; + qCWarning(E2EE) << "End-to-end encryption (E2EE) support is turned off."; #else // Quotient_E2EE_ENABLED d->encryptionManager->uploadIdentityKeys(this); d->encryptionManager->uploadOneTimeKeys(this); @@ -377,10 +377,10 @@ void Connection::Private::connectWithToken(const QString& userId, q->setObjectName(userId % '/' % deviceId); qCDebug(MAIN) << "Using server" << data->baseUrl().toDisplayString() << "by user" << userId << "from device" << deviceId; - AccountSettings accountSettings(userId); #ifndef Quotient_E2EE_ENABLED qCWarning(E2EE) << "End-to-end encryption (E2EE) support is turned off."; #else // Quotient_E2EE_ENABLED + AccountSettings accountSettings(userId); encryptionManager.reset( new EncryptionManager(accountSettings.encryptionAccountPickle())); if (accountSettings.encryptionAccountPickle().isEmpty()) { |