| 1 | // SPDX-FileCopyrightText: 2017 Kitsune Ral <kitsune-ral@users.sf.net> |
|---|---|
| 2 | // SPDX-License-Identifier: LGPL-2.1-or-later |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "roomevent.h" |
| 7 | |
| 8 | namespace Quotient { |
| 9 | class QUOTIENT_API RedactionEvent : public RoomEvent { |
| 10 | public: |
| 11 | QUO_EVENT(RedactionEvent, "m.room.redaction") |
| 12 | |
| 13 | using RoomEvent::RoomEvent; |
| 14 | |
| 15 | QString redactedEvent() const |
| 16 | { |
| 17 | return fullJson()["redacts"_ls].toString(); |
| 18 | } |
| 19 | QUO_CONTENT_GETTER(QString, reason) |
| 20 | }; |
| 21 | } // namespace Quotient |
| 22 |