summary refs log tree commit diff
path: root/src/encryption/DeviceVerificationFlow.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-12-11 06:19:54 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-12-11 06:19:54 +0100
commit89e58f78f1b9a67fe75be2c839c6a026011b8ae7 (patch)
treed0120a0f42224628b524e4157ceaa55a46742a8f /src/encryption/DeviceVerificationFlow.cpp
parentSupport pinned messages (diff)
downloadnheko-89e58f78f1b9a67fe75be2c839c6a026011b8ae7.tar.xz
Fix a few shadowing warnings
fixes #824
Diffstat (limited to 'src/encryption/DeviceVerificationFlow.cpp')
-rw-r--r--src/encryption/DeviceVerificationFlow.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/encryption/DeviceVerificationFlow.cpp b/src/encryption/DeviceVerificationFlow.cpp

index 42a0d041..13867097 100644 --- a/src/encryption/DeviceVerificationFlow.cpp +++ b/src/encryption/DeviceVerificationFlow.cpp
@@ -46,10 +46,10 @@ DeviceVerificationFlow::DeviceVerificationFlow(QObject *, this->sas = olm::client()->sas_init(); this->isMacVerified = false; - auto user_id = userID.toStdString(); - this->toClient = mtx::identifiers::parse<mtx::identifiers::User>(user_id); + auto user_id_ = userID.toStdString(); + this->toClient = mtx::identifiers::parse<mtx::identifiers::User>(user_id_); cache::client()->query_keys( - user_id, [user_id, this](const UserKeyCache &res, mtx::http::RequestErr err) { + user_id_, [user_id_, this](const UserKeyCache &res, mtx::http::RequestErr err) { if (err) { nhlog::net()->warn("failed to query device keys: {},{}", mtx::errors::to_string(err->matrix_error.errcode), @@ -59,7 +59,7 @@ DeviceVerificationFlow::DeviceVerificationFlow(QObject *, if (!this->deviceId.isEmpty() && (res.device_keys.find(deviceId.toStdString()) == res.device_keys.end())) { - nhlog::net()->warn("no devices retrieved {}", user_id); + nhlog::net()->warn("no devices retrieved {}", user_id_); return; }