summary refs log tree commit diff
path: root/webclient/room/room.html
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-11-03 15:05:35 +0000
committerKegan Dougal <kegan@matrix.org>2014-11-03 15:05:35 +0000
commit1071d063ab92a882eaacf71dfe05f580c65f6b75 (patch)
tree9c3ca9e6235712dd56e269912b7a0751a4c3fdad /webclient/room/room.html
parentFix hidden event keys being incorrectly shown in the even info dialog. (diff)
downloadsynapse-1071d063ab92a882eaacf71dfe05f580c65f6b75.tar.xz
Fix broken redact enable logic.
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 8b5be66cf5..3f4c4c57b6 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="!room.current_room.state.state_events['m.room.ops_levels'].content.redact_level || !pow(room_id, state.user_id) || pow(room_id, state.user_id) < room.current_room.state.state_events['m.room.ops_levels'].content.redact_level"
+             ng-disabled="!room.current_room_state.state('m.room.ops_levels').content.redact_level || !pow(room_id, state.user_id) || pow(room_id, state.user_id) < room.current_room_state.state('m.room.ops_levels').content.redact_level"
              title="Delete this event on all home servers. This cannot be undone.">
                 Redact
             </button>