summary refs log tree commit diff
path: root/webclient/room/room-controller.js
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-11-03 15:02:16 +0000
committerKegan Dougal <kegan@matrix.org>2014-11-03 15:02:16 +0000
commit7614d8f87a445aae48ea7869f72070796218bcee (patch)
tree294c815d40d08bc7b798aa56bcceac512ca979f2 /webclient/room/room-controller.js
parentFix bug which prevented pagination from bumping the list down, causing infini... (diff)
downloadsynapse-7614d8f87a445aae48ea7869f72070796218bcee.tar.xz
Fix hidden event keys being incorrectly shown in the even info dialog.
Diffstat (limited to '')
-rw-r--r--webclient/room/room-controller.js6
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;