aboutsummaryrefslogtreecommitdiff
path: root/lib/e2ee/e2ee.h
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-06-24 22:41:15 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-06-24 22:41:15 +0200
commit63e4cce8cc32af9bd92ead9876a3642d7cbdfb31 (patch)
tree5742782582da07514708f6150d1194049e31ebfd /lib/e2ee/e2ee.h
parent4d4d363b29ff4e471511ff454a58d7d8b88d215d (diff)
downloadlibquotient-63e4cce8cc32af9bd92ead9876a3642d7cbdfb31.tar.gz
libquotient-63e4cce8cc32af9bd92ead9876a3642d7cbdfb31.zip
Fix the just introduced Sonar warning
Too many parameters of the same type in a row.
Diffstat (limited to 'lib/e2ee/e2ee.h')
-rw-r--r--lib/e2ee/e2ee.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/e2ee/e2ee.h b/lib/e2ee/e2ee.h
index 449e6ef7..0772b70a 100644
--- a/lib/e2ee/e2ee.h
+++ b/lib/e2ee/e2ee.h
@@ -84,12 +84,13 @@ struct UnsignedOneTimeKeys
class SignedOneTimeKey {
public:
explicit SignedOneTimeKey(const QString& unsignedKey, const QString& userId,
- const QString& deviceId, const QString& signature)
+ const QString& deviceId,
+ const QByteArray& signature)
: payload { { "key"_ls, unsignedKey },
{ "signatures"_ls,
QJsonObject {
{ userId, QJsonObject { { "ed25519:"_ls % deviceId,
- signature } } } } } }
+ QString(signature) } } } } } }
{}
explicit SignedOneTimeKey(const QJsonObject& jo = {})
: payload(jo)