summary refs log tree commit diff
path: root/webclient/room/room.html
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-10-29 15:31:50 +0000
committerKegan Dougal <kegan@matrix.org>2014-10-29 15:31:50 +0000
commit6d4617960d0223c13f8145b31df86e1f1f8d43ec (patch)
tree6b813a1daa4daaa3b31ec12add810487ffef4ac1 /webclient/room/room.html
parentSYWEB-98: Add a 'Redact' button to the event info modal dialog. (diff)
downloadsynapse-6d4617960d0223c13f8145b31df86e1f1f8d43ec.tar.xz
SYWEB-98: Add redactEvent matrix API call.
Diffstat (limited to 'webclient/room/room.html')
-rw-r--r--webclient/room/room.html2
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>