diff options
-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; |