Fix hidden event keys being incorrectly shown in the even info dialog.

This commit is contained in:
Kegan Dougal 2014-11-03 15:02:16 +00:00
parent f4e50079de
commit 7614d8f87a

View File

@ -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;