aboutsummaryrefslogtreecommitdiff
path: root/room.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'room.cpp')
-rw-r--r--room.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/room.cpp b/room.cpp
index 48486ab8..dfca6bde 100644
--- a/room.cpp
+++ b/room.cpp
@@ -23,6 +23,7 @@
#include "jobs/generated/banning.h"
#include "jobs/generated/leaving.h"
#include "jobs/generated/receipts.h"
+#include "jobs/generated/redaction.h"
#include "jobs/setroomstatejob.h"
#include "events/simplestateevents.h"
#include "events/roomavatarevent.h"
@@ -671,6 +672,12 @@ void Room::unban(const QString& userId)
connection()->callApi<UnbanJob>(id(), userId);
}
+void Room::redactEvent(const QString& eventId, const QString& reason)
+{
+ connection()->callApi<RedactEventJob>(
+ id(), eventId, connection()->generateTxnId(), reason);
+}
+
void Room::Private::dropDuplicateEvents(RoomEvents* events) const
{
// Collect all duplicate events at the end of the container