summary refs log tree commit diff
path: root/include/MatrixClient.h
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-03-17 21:23:46 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-03-17 21:23:46 +0200
commita0ae6cf5d583bb650b7164dbe602b7552a201814 (patch)
treec831eba0640000f1fd767122d35932d82a1f3987 /include/MatrixClient.h
parentUpdate issue template (diff)
downloadnheko-a0ae6cf5d583bb650b7164dbe602b7552a201814.tar.xz
Add ability to redact messages
Diffstat (limited to 'include/MatrixClient.h')
-rw-r--r--include/MatrixClient.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/MatrixClient.h b/include/MatrixClient.h
index 69fa72bc..3052a118 100644
--- a/include/MatrixClient.h
+++ b/include/MatrixClient.h
@@ -86,6 +86,7 @@ public:
         void sendTypingNotification(const QString &roomid, int timeoutInMillis = 20000);
         void removeTypingNotification(const QString &roomid);
         void readEvent(const QString &room_id, const QString &event_id);
+        void redactEvent(const QString &room_id, const QString &event_id);
         void inviteUser(const QString &room_id, const QString &user);
         void createRoom(const mtx::requests::CreateRoom &request);
 
@@ -171,6 +172,9 @@ signals:
         void leftRoom(const QString &room_id);
         void roomCreationFailed(const QString &msg);
 
+        void redactionFailed(const QString &error);
+        void redactionCompleted(const QString &room_id, const QString &event_id);
+
 private:
         QNetworkReply *makeUploadRequest(QSharedPointer<QIODevice> iodev);
         QJsonObject getUploadReply(QNetworkReply *reply);