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/room/room.html | |
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 '')
-rw-r--r-- | webclient/room/room.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webclient/room/room.html b/webclient/room/room.html index 5293a579d3..85ae0eeca4 100644 --- a/webclient/room/room.html +++ b/webclient/room/room.html @@ -6,7 +6,7 @@ </div> <div class="modal-footer"> <button ng-click="redact()" type="button" class="btn btn-danger" - ng-disabled="pow(room_id, state.user_id) < events.rooms[room_id]['m.room.ops_levels'].content.redact_level" + ng-disabled="!events.rooms[room_id]['m.room.ops_levels'].content.redact_level || !pow(room_id, state.user_id) || pow(room_id, state.user_id) < events.rooms[room_id]['m.room.ops_levels'].content.redact_level" title="Delete this event on all home servers. This cannot be undone."> Redact </button> |