aboutsummaryrefslogtreecommitdiff
path: root/lib/events/typingevent.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/events/typingevent.h')
-rw-r--r--lib/events/typingevent.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/events/typingevent.h b/lib/events/typingevent.h
index 6ccbc1c8..27b668b4 100644
--- a/lib/events/typingevent.h
+++ b/lib/events/typingevent.h
@@ -20,20 +20,20 @@
#include "event.h"
-#include <QtCore/QStringList>
-
namespace QMatrixClient
{
class TypingEvent: public Event
{
public:
- static constexpr const char* typeId() { return "m.typing"; }
+ DEFINE_EVENT_TYPEID("m.typing", TypingEvent)
TypingEvent(const QJsonObject& obj);
- QStringList users() const { return _users; }
+ const QStringList& users() const { return _users; }
private:
QStringList _users;
};
+ REGISTER_EVENT_TYPE(TypingEvent)
+ DEFINE_EVENTTYPE_ALIAS(Typing, TypingEvent)
} // namespace QMatrixClient