diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-09-05 15:20:58 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-09-05 15:20:58 +0200 |
commit | 66127730592eadf9ee717a53a521ac2ec14f1051 (patch) | |
tree | b5e92497f41c0051323745a8289e17577f015a9b /lib/connection.cpp | |
parent | 1e263a32fcbc44985e474a626393494a81f15e37 (diff) | |
download | libquotient-66127730592eadf9ee717a53a521ac2ec14f1051.tar.gz libquotient-66127730592eadf9ee717a53a521ac2ec14f1051.zip |
sendToDevice: fix unintended slicing
Ironically, this slicing would not break anything as all the necessary
data are saved in the Event parent class; but the code is very fragile
and scary.
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r-- | lib/connection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp index d9268028..53c99969 100644 --- a/lib/connection.cpp +++ b/lib/connection.cpp @@ -2471,7 +2471,7 @@ void Connection::startKeyVerificationSession(const QString& deviceId) } void Connection::sendToDevice(const QString& targetUserId, - const QString& targetDeviceId, Event event, + const QString& targetDeviceId, const Event& event, bool encrypted) { const auto contentJson = |