diff options
Diffstat (limited to 'lib/events/directchatevent.h')
-rw-r--r-- | lib/events/directchatevent.h | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/lib/events/directchatevent.h b/lib/events/directchatevent.h index 0d8b8f74..6b4a08ee 100644 --- a/lib/events/directchatevent.h +++ b/lib/events/directchatevent.h @@ -20,18 +20,19 @@ #include "event.h" -namespace QMatrixClient { - class DirectChatEvent : public Event - { - public: - DEFINE_EVENT_TYPEID("m.direct", DirectChatEvent) +namespace QMatrixClient +{ +class DirectChatEvent : public Event +{ +public: + DEFINE_EVENT_TYPEID("m.direct", DirectChatEvent) - explicit DirectChatEvent(const QJsonObject& obj) : Event(typeId(), obj) - { - } + explicit DirectChatEvent(const QJsonObject& obj) + : Event(typeId(), obj) + {} - QMultiHash<QString, QString> usersToDirectChats() const; - }; - REGISTER_EVENT_TYPE(DirectChatEvent) - DEFINE_EVENTTYPE_ALIAS(DirectChat, DirectChatEvent) -} + QMultiHash<QString, QString> usersToDirectChats() const; +}; +REGISTER_EVENT_TYPE(DirectChatEvent) +DEFINE_EVENTTYPE_ALIAS(DirectChat, DirectChatEvent) +} // namespace QMatrixClient |