diff options
Diffstat (limited to 'events')
-rw-r--r-- | events/roommemberevent.h | 2 | ||||
-rw-r--r-- | events/typingevent.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/events/roommemberevent.h b/events/roommemberevent.h index 9ebb75ee..358af257 100644 --- a/events/roommemberevent.h +++ b/events/roommemberevent.h @@ -28,6 +28,8 @@ namespace QMatrixClient { Q_GADGET public: + static constexpr const char* TypeId = "m.room.member"; + enum MembershipType : int {Invite = 0, Join, Knock, Leave, Ban}; explicit RoomMemberEvent(const QJsonObject& obj); diff --git a/events/typingevent.h b/events/typingevent.h index b12d224e..8c9551a4 100644 --- a/events/typingevent.h +++ b/events/typingevent.h @@ -27,6 +27,8 @@ namespace QMatrixClient class TypingEvent: public Event { public: + static constexpr const char* const TypeId = "m.typing"; + TypingEvent(const QJsonObject& obj); QStringList users() const { return _users; } |