diff options
author | Kegan Dougal <kegan@matrix.org> | 2014-11-03 15:02:16 +0000 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2014-11-03 15:02:16 +0000 |
commit | 7614d8f87a445aae48ea7869f72070796218bcee (patch) | |
tree | 294c815d40d08bc7b798aa56bcceac512ca979f2 /webclient/room/room-controller.js | |
parent | Fix bug which prevented pagination from bumping the list down, causing infini... (diff) | |
download | synapse-7614d8f87a445aae48ea7869f72070796218bcee.tar.xz |
Fix hidden event keys being incorrectly shown in the even info dialog.
Diffstat (limited to 'webclient/room/room-controller.js')
-rw-r--r-- | webclient/room/room-controller.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/webclient/room/room-controller.js b/webclient/room/room-controller.js index 38158ffc74..0bcc33ab4f 100644 --- a/webclient/room/room-controller.js +++ b/webclient/room/room-controller.js @@ -1004,7 +1004,11 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput']) }; $scope.openJson = function(content) { - $scope.event_selected = content; + $scope.event_selected = angular.copy(content); + + // FIXME: Pre-calculated event data should be stripped in a nicer way. + $scope.event_selected.room_member = undefined; + // scope this so the template can check power levels and enable/disable // buttons $scope.pow = eventHandlerService.getUserPowerLevel; |