diff options
author | Kegan Dougal <kegan@matrix.org> | 2014-10-29 15:31:50 +0000 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2014-10-29 15:31:50 +0000 |
commit | 6d4617960d0223c13f8145b31df86e1f1f8d43ec (patch) | |
tree | 6b813a1daa4daaa3b31ec12add810487ffef4ac1 /webclient/components | |
parent | SYWEB-98: Add a 'Redact' button to the event info modal dialog. (diff) | |
download | synapse-6d4617960d0223c13f8145b31df86e1f1f8d43ec.tar.xz |
SYWEB-98: Add redactEvent matrix API call.
Diffstat (limited to 'webclient/components')
-rw-r--r-- | webclient/components/matrix/matrix-service.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/webclient/components/matrix/matrix-service.js b/webclient/components/matrix/matrix-service.js index a4f0568bce..1840cf46c0 100644 --- a/webclient/components/matrix/matrix-service.js +++ b/webclient/components/matrix/matrix-service.js @@ -438,6 +438,14 @@ angular.module('matrixService', []) return this.sendMessage(room_id, msg_id, content); }, + redactEvent: function(room_id, event_id) { + var path = "/rooms/$room_id/redact/$event_id"; + path = path.replace("$room_id", room_id); + path = path.replace("$event_id", event_id); + var content = {}; + return doRequest("POST", path, undefined, content); + }, + // get a snapshot of the members in a room. getMemberList: function(room_id) { // Like the cmd client, escape room ids |