mirror of
https://github.com/element-hq/synapse
synced 2024-08-19 18:30:24 +00:00
Fix hidden event keys being incorrectly shown in the even info dialog.
This commit is contained in:
parent
f4e50079de
commit
7614d8f87a
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue