From 7614d8f87a445aae48ea7869f72070796218bcee Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Mon, 3 Nov 2014 15:02:16 +0000 Subject: Fix hidden event keys being incorrectly shown in the even info dialog. --- webclient/room/room-controller.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- cgit 1.4.1