diff options
author | Tobias Fella <fella@posteo.de> | 2022-02-27 19:15:16 +0100 |
---|---|---|
committer | Tobias Fella <fella@posteo.de> | 2022-03-10 19:45:01 +0100 |
commit | 4f137493f026afba2299ae5b65ef6eb17939aece (patch) | |
tree | 969f131c4c729f7a935ffa25beb47f267e289ca1 /lib/events/roomkeyevent.h | |
parent | b865be5ad72b3996bf072268d061d7466bf4623a (diff) | |
download | libquotient-4f137493f026afba2299ae5b65ef6eb17939aece.tar.gz libquotient-4f137493f026afba2299ae5b65ef6eb17939aece.zip |
Add constructor for creating roomkeyevents
Diffstat (limited to 'lib/events/roomkeyevent.h')
-rw-r--r-- | lib/events/roomkeyevent.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/events/roomkeyevent.h b/lib/events/roomkeyevent.h index c4df7936..cb3fe7e7 100644 --- a/lib/events/roomkeyevent.h +++ b/lib/events/roomkeyevent.h @@ -12,6 +12,7 @@ public: DEFINE_EVENT_TYPEID("m.room_key", RoomKeyEvent) explicit RoomKeyEvent(const QJsonObject& obj); + explicit RoomKeyEvent(const QString& algorithm, const QString& roomId, const QString &sessionId, const QString& sessionKey, const QString& senderId); QString algorithm() const { return contentPart<QString>("algorithm"_ls); } QString roomId() const { return contentPart<QString>(RoomIdKeyL); } |