Skip to content
Snippets Groups Projects
Commit f286a4fc authored by Emmanuel ROHEE's avatar Emmanuel ROHEE
Browse files

Fixed empty display name (content.displayname in a room member can be null)

parent e2ae8af0
No related branches found
No related tags found
No related merge requests found
......@@ -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} }
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment