aboutsummaryrefslogtreecommitdiff
path: root/src/account.cpp
diff options
context:
space:
mode:
authorHubert Chathi <hubert@uhoreg.ca>2020-09-16 16:14:23 -0400
committerHubert Chathi <hubert@uhoreg.ca>2020-09-16 16:14:23 -0400
commitc47c6ca3992c74489700cda44443ec29c3cb3b13 (patch)
tree6830d4d13f7c1106f8e4e772e16f9204d523fcd5 /src/account.cpp
parentc45f19f12d3da498075970586a37aed7aaafda5a (diff)
fix style
Diffstat (limited to 'src/account.cpp')
-rw-r--r--src/account.cpp20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/account.cpp b/src/account.cpp
index a747677..e84a540 100644
--- a/src/account.cpp
+++ b/src/account.cpp
@@ -38,11 +38,17 @@ olm::OneTimeKey const * olm::Account::lookup_key(
}
}
if (current_fallback_key.published
- && olm::array_equal(current_fallback_key.key.public_key.public_key, public_key.public_key)) {
+ && olm::array_equal(
+ current_fallback_key.key.public_key.public_key, public_key.public_key
+ )
+ ) {
return &current_fallback_key;
}
if (prev_fallback_key.published
- && olm::array_equal(prev_fallback_key.key.public_key.public_key, public_key.public_key)) {
+ && olm::array_equal(
+ prev_fallback_key.key.public_key.public_key, public_key.public_key
+ )
+ ) {
return &prev_fallback_key;
}
return 0;
@@ -62,11 +68,17 @@ std::size_t olm::Account::remove_key(
// check if the key is a fallback key, to avoid returning an error, but
// don't actually remove it
if (current_fallback_key.published
- && olm::array_equal(current_fallback_key.key.public_key.public_key, public_key.public_key)) {
+ && olm::array_equal(
+ current_fallback_key.key.public_key.public_key, public_key.public_key
+ )
+ ) {
return current_fallback_key.id;
}
if (prev_fallback_key.published
- && olm::array_equal(prev_fallback_key.key.public_key.public_key, public_key.public_key)) {
+ && olm::array_equal(
+ prev_fallback_key.key.public_key.public_key, public_key.public_key
+ )
+ ) {
return prev_fallback_key.id;
}
return std::size_t(-1);