diff options
Diffstat (limited to 'lib/events/directchatevent.h')
-rw-r--r-- | lib/events/directchatevent.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/events/directchatevent.h b/lib/events/directchatevent.h index bd8f2d35..7559796b 100644 --- a/lib/events/directchatevent.h +++ b/lib/events/directchatevent.h @@ -25,10 +25,14 @@ namespace QMatrixClient class DirectChatEvent : public Event { public: - explicit DirectChatEvent(const QJsonObject& obj); + DEFINE_EVENT_TYPEID("m.direct", DirectChatEvent) - QMultiHash<QString, QString> usersToDirectChats() const; + explicit DirectChatEvent(const QJsonObject& obj) + : Event(typeId(), obj) + { } - static constexpr const char* typeId() { return "m.direct"; } + QMultiHash<QString, QString> usersToDirectChats() const; }; + REGISTER_EVENT_TYPE(DirectChatEvent) + DEFINE_EVENTTYPE_ALIAS(DirectChat, DirectChatEvent) } |