mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Fixed empty display name (content.displayname in a room member can be null)
This commit is contained in:
parent
e2ae8af072
commit
f286a4fcd4
@ -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
|
(e.g. controllers) via $broadcast. Alternatively, it may update the $rootScope
|
||||||
if typically all the $on method would do is update its own $scope.
|
if typically all the $on method would do is update its own $scope.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
var toto;
|
||||||
|
|
||||||
angular.module('eventHandlerService', [])
|
angular.module('eventHandlerService', [])
|
||||||
.factory('eventHandlerService', ['matrixService', '$rootScope', '$q', function(matrixService, $rootScope, $q) {
|
.factory('eventHandlerService', ['matrixService', '$rootScope', '$q', function(matrixService, $rootScope, $q) {
|
||||||
var ROOM_CREATE_EVENT = "ROOM_CREATE_EVENT";
|
var ROOM_CREATE_EVENT = "ROOM_CREATE_EVENT";
|
||||||
@ -38,6 +41,9 @@ angular.module('eventHandlerService', [])
|
|||||||
|
|
||||||
var InitialSyncDeferred = $q.defer();
|
var InitialSyncDeferred = $q.defer();
|
||||||
|
|
||||||
|
|
||||||
|
toto = $rootScope;
|
||||||
|
|
||||||
$rootScope.events = {
|
$rootScope.events = {
|
||||||
rooms: {} // will contain roomId: { messages:[], members:{userid1: event} }
|
rooms: {} // will contain roomId: { messages:[], members:{userid1: event} }
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user