diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-03-13 12:07:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-13 12:07:28 +0100 |
commit | 301d29e8db272938b0977af5db872c80f89fd708 (patch) | |
tree | 4da15b959ed522db941237826ea6aa4539f1773c /lib/events/roomkeyevent.cpp | |
parent | ef81c79c4e7d24d63d1520ddefef347c11052235 (diff) | |
parent | 56d9a0addaabf2cec78e1c82a9846997a3669736 (diff) | |
download | libquotient-301d29e8db272938b0977af5db872c80f89fd708.tar.gz libquotient-301d29e8db272938b0977af5db872c80f89fd708.zip |
Merge pull request #346 from quotient-im/aa13q-e2ee-encrypted-msg
E2EE: implement receiving of the messages
Diffstat (limited to 'lib/events/roomkeyevent.cpp')
-rw-r--r-- | lib/events/roomkeyevent.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/events/roomkeyevent.cpp b/lib/events/roomkeyevent.cpp new file mode 100644 index 00000000..1fb2e9f5 --- /dev/null +++ b/lib/events/roomkeyevent.cpp @@ -0,0 +1,11 @@ +#include "roomkeyevent.h" + +using namespace Quotient; + +RoomKeyEvent::RoomKeyEvent(const QJsonObject &obj) : Event(typeId(), obj) +{ + _algorithm = contentJson()["algorithm"_ls].toString(); + _roomId = contentJson()["room_id"_ls].toString(); + _sessionId = contentJson()["session_id"_ls].toString(); + _sessionKey = contentJson()["session_key"_ls].toString(); +} |