mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-08 03:05:03 -04:00
SYWEB-98: Add redactEvent matrix API call.
This commit is contained in:
parent
70137409ed
commit
6d4617960d
3 changed files with 30 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue