aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/redaction.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/redaction.h')
-rw-r--r--lib/csapi/redaction.h23
1 files changed, 9 insertions, 14 deletions
diff --git a/lib/csapi/redaction.h b/lib/csapi/redaction.h
index 0e9095d1..c737de41 100644
--- a/lib/csapi/redaction.h
+++ b/lib/csapi/redaction.h
@@ -8,8 +8,6 @@
namespace Quotient {
-// Operations
-
/*! \brief Strips all non-integrity-critical information out of an event.
*
* Strips all information out of an event which isn't critical to the
@@ -18,38 +16,35 @@ namespace Quotient {
* This cannot be undone.
*
* Users may redact their own events, and any user with a power level
- * greater than or equal to the `redact` power level of the room may
+ * greater than or equal to the ``redact`` power level of the room may
* redact events there.
*/
class RedactEventJob : public BaseJob {
public:
/*! \brief Strips all non-integrity-critical information out of an event.
*
+ *
* \param roomId
* The room from which to redact the event.
+ *
* \param eventId
* The ID of the event to redact
+ *
* \param txnId
* The transaction ID for this event. Clients should generate a
* unique ID; it will be used by the server to ensure idempotency of
- * requests. \param reason The reason for the event being redacted.
+ * requests.
+ *
+ * \param reason
+ * The reason for the event being redacted.
*/
explicit RedactEventJob(const QString& roomId, const QString& eventId,
const QString& txnId, const QString& reason = {});
- ~RedactEventJob() override;
-
// Result properties
/// A unique identifier for the event.
- const QString& eventId() const;
-
-protected:
- Status parseJson(const QJsonDocument& data) override;
-
-private:
- class Private;
- QScopedPointer<Private> d;
+ QString eventId() const { return loadFromJson<QString>("event_id"_ls); }
};
} // namespace Quotient