diff options
author | Alexey Andreyev <aa13q@ya.ru> | 2019-08-23 13:23:42 +0300 |
---|---|---|
committer | Alexey Andreev <aa13q@ya.ru> | 2020-02-25 17:27:40 +0300 |
commit | 60c0f079f0366e501de6658b5fb56ec905da0c31 (patch) | |
tree | b3dd380efc24449af15a47c1c1206a9960cee343 /lib/events/roomkeyevent.cpp | |
parent | 2de9cb11b4157eebacc3906df79a8d6d4fb43651 (diff) | |
download | libquotient-60c0f079f0366e501de6658b5fb56ec905da0c31.tar.gz libquotient-60c0f079f0366e501de6658b5fb56ec905da0c31.zip |
E2EE: introduce RoomKeyEvent
Signed-off-by: Alexey Andreev <aa13q@ya.ru>
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(); +} |