mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-01-02 10:46:17 -05:00
BF: Made member events parsing work (handleEvents expects an array of events)
This commit is contained in:
parent
466fbe4c4e
commit
06c79a23d4
@ -96,7 +96,7 @@ angular.module('eventStreamService', [])
|
|||||||
);
|
);
|
||||||
|
|
||||||
return deferred.promise;
|
return deferred.promise;
|
||||||
}
|
};
|
||||||
|
|
||||||
var startEventStream = function() {
|
var startEventStream = function() {
|
||||||
settings.shouldPoll = true;
|
settings.shouldPoll = true;
|
||||||
@ -110,18 +110,14 @@ angular.module('eventStreamService', [])
|
|||||||
for (var i = 0; i < rooms.length; ++i) {
|
for (var i = 0; i < rooms.length; ++i) {
|
||||||
var room = rooms[i];
|
var room = rooms[i];
|
||||||
if ("state" in room) {
|
if ("state" in room) {
|
||||||
for (var j = 0; j < room.state.length; ++j) {
|
eventHandlerService.handleEvents(room.state, false);
|
||||||
eventHandlerService.handleEvents(room.state[j], false);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var presence = response.data.presence;
|
var presence = response.data.presence;
|
||||||
for (var i = 0; i < presence.length; ++i) {
|
eventHandlerService.handleEvents(presence, false);
|
||||||
eventHandlerService.handleEvent(presence[i], false);
|
|
||||||
}
|
|
||||||
|
|
||||||
settings.from = response.data.end
|
settings.from = response.data.end;
|
||||||
doEventStream(deferred);
|
doEventStream(deferred);
|
||||||
},
|
},
|
||||||
function(error) {
|
function(error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user