summary refs log tree commit diff
path: root/src/encryption
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-09-25 20:05:08 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2022-09-25 20:05:08 +0200
commit851333a50da846cc458356d763d524750b432ccb (patch)
tree0ff682353637708e8952444662e2890228c66b8b /src/encryption
parentAccepted... not Approved (diff)
downloadnheko-851333a50da846cc458356d763d524750b432ccb.tar.xz
Switch to clang-format14
Diffstat (limited to 'src/encryption')
-rw-r--r--src/encryption/DeviceVerificationFlow.cpp2
-rw-r--r--src/encryption/VerificationManager.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/encryption/DeviceVerificationFlow.cpp b/src/encryption/DeviceVerificationFlow.cpp

index 5b373f8b..2cf8b060 100644 --- a/src/encryption/DeviceVerificationFlow.cpp +++ b/src/encryption/DeviceVerificationFlow.cpp
@@ -661,7 +661,7 @@ DeviceVerificationFlow::startVerificationRequest() req.hashes = {"sha256"}; req.message_authentication_codes = {"hkdf-hmac-sha256"}; req.short_authentication_string = {mtx::events::msg::SASMethods::Decimal, - mtx::events::msg::SASMethods::Emoji}; + mtx::events::msg::SASMethods::Emoji}; if (this->type == DeviceVerificationFlow::Type::ToDevice) { mtx::requests::ToDeviceMessages<mtx::events::msg::KeyVerificationStart> body; diff --git a/src/encryption/VerificationManager.cpp b/src/encryption/VerificationManager.cpp
index ca712922..bb986665 100644 --- a/src/encryption/VerificationManager.cpp +++ b/src/encryption/VerificationManager.cpp
@@ -15,7 +15,8 @@ VerificationManager::VerificationManager(TimelineViewManager *o) : QObject(o) , rooms_(o->rooms()) -{} +{ +} static bool isValidTime(std::optional<uint64_t> t)