summary refs log tree commit diff
path: root/webclient/components
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-09-05 15:50:44 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-09-05 15:50:44 +0200
commitf286a4fcd46ff6c2c42a8732d004d8188aaa65f8 (patch)
treeb1b1cbf46633ddf610bf5ac62a7bb1fc540b09e6 /webclient/components
parentAdd demo/etc to .gitignore (diff)
downloadsynapse-f286a4fcd46ff6c2c42a8732d004d8188aaa65f8.tar.xz
Fixed empty display name (content.displayname in a room member can be null)
Diffstat (limited to 'webclient/components')
-rw-r--r--webclient/components/matrix/event-handler-service.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/webclient/components/matrix/event-handler-service.js b/webclient/components/matrix/event-handler-service.js
index ee478d2eb0..79d352a7c4 100644
--- a/webclient/components/matrix/event-handler-service.js
+++ b/webclient/components/matrix/event-handler-service.js
@@ -26,6 +26,9 @@ Typically, this service will store events or broadcast them to any listeners
 (e.g. controllers) via $broadcast. Alternatively, it may update the $rootScope
 if typically all the $on method would do is update its own $scope.
 */
+
+var toto;
+
 angular.module('eventHandlerService', [])
 .factory('eventHandlerService', ['matrixService', '$rootScope', '$q', function(matrixService, $rootScope, $q) {
     var ROOM_CREATE_EVENT = "ROOM_CREATE_EVENT";
@@ -38,6 +41,9 @@ angular.module('eventHandlerService', [])
 
     var InitialSyncDeferred = $q.defer();
     
+    
+    toto = $rootScope;
+    
     $rootScope.events = {
         rooms: {} // will contain roomId: { messages:[], members:{userid1: event} }
     };