diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-07-06 19:58:29 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-07-06 19:58:29 +0900 |
commit | 01cce0e39d255cbcf39f6a1aa58c6d7ab1d995d1 (patch) | |
tree | 217c33312e9b9832c0c392f7416fcfc38de19689 /lib/events/event.h | |
parent | 5b8079ca3d35360b7d98814654f37885f21bcb7e (diff) | |
download | libquotient-01cce0e39d255cbcf39f6a1aa58c6d7ab1d995d1.tar.gz libquotient-01cce0e39d255cbcf39f6a1aa58c6d7ab1d995d1.zip |
Convenience: StateKeyKey, StateKeyKeyL, basicStateEventJson()
Diffstat (limited to 'lib/events/event.h')
-rw-r--r-- | lib/events/event.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/events/event.h b/lib/events/event.h index 5248472c..b3a58806 100644 --- a/lib/events/event.h +++ b/lib/events/event.h @@ -60,14 +60,16 @@ namespace QMatrixClient static const auto ContentKey = QStringLiteral("content"); static const auto EventIdKey = QStringLiteral("event_id"); static const auto UnsignedKey = QStringLiteral("unsigned"); + static const auto StateKeyKey = QStringLiteral("state_key"); static const auto TypeKeyL = "type"_ls; static const auto ContentKeyL = "content"_ls; static const auto EventIdKeyL = "event_id"_ls; static const auto UnsignedKeyL = "unsigned"_ls; static const auto RedactedCauseKeyL = "redacted_because"_ls; static const auto PrevContentKeyL = "prev_content"_ls; + static const auto StateKeyKeyL = "state_key"_ls; - // Minimal correct Matrix event JSON + /// Make a minimal correct Matrix event JSON template <typename StrT> inline QJsonObject basicEventJson(StrT matrixType, const QJsonObject& content) |