diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-12-22 16:13:02 +0100 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-12-22 16:13:02 +0100 |
commit | 060af9334049c58767b6457da2d7c07fdb0d171e (patch) | |
tree | 8f44541cd883d94267a1c31ce4145e69f750798a /lib/events/stateevent.h | |
parent | 231c4d723eb53f3ea5f641b743d198584840a963 (diff) | |
download | libquotient-060af9334049c58767b6457da2d7c07fdb0d171e.tar.gz libquotient-060af9334049c58767b6457da2d7c07fdb0d171e.zip |
StateEventBase: force type to unknown if stateKey is not in JSON
Diffstat (limited to 'lib/events/stateevent.h')
-rw-r--r-- | lib/events/stateevent.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/events/stateevent.h b/lib/events/stateevent.h index 919e8f86..c37965aa 100644 --- a/lib/events/stateevent.h +++ b/lib/events/stateevent.h @@ -21,8 +21,7 @@ class StateEventBase : public RoomEvent { public: static inline _impl::EventFactory<StateEventBase> factory { "StateEvent" }; - StateEventBase(Type type, const QJsonObject& json) : RoomEvent(type, json) - {} + StateEventBase(Type type, const QJsonObject& json); StateEventBase(Type type, event_mtype_t matrixType, const QString& stateKey = {}, const QJsonObject& contentJson = {}); |