diff options
Diffstat (limited to 'lib/events/redactionevent.h')
-rw-r--r-- | lib/events/redactionevent.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/events/redactionevent.h b/lib/events/redactionevent.h index 63617e54..a2e0b73b 100644 --- a/lib/events/redactionevent.h +++ b/lib/events/redactionevent.h @@ -8,10 +8,9 @@ namespace Quotient { class QUOTIENT_API RedactionEvent : public RoomEvent { public: - DEFINE_EVENT_TYPEID("m.room.redaction", RedactionEvent) + QUO_EVENT(RedactionEvent, "m.room.redaction") - explicit RedactionEvent(const QJsonObject& obj) : RoomEvent(typeId(), obj) - {} + using RoomEvent::RoomEvent; QString redactedEvent() const { @@ -19,5 +18,4 @@ public: } QUO_CONTENT_GETTER(QString, reason) }; -REGISTER_EVENT_TYPE(RedactionEvent) } // namespace Quotient |