mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 09:54:56 -04:00
Removed wrong comments about recents-controller.js: it uses $rootScope.rooms not $rootScope.events.rooms managed by event-handler-service.js and used by other controllers
This commit is contained in:
parent
130cbdd7af
commit
da3f842b8c
2 changed files with 2 additions and 25 deletions
|
@ -104,9 +104,7 @@ angular.module('eventStreamService', [])
|
|||
settings.isActive = true;
|
||||
var deferred = $q.defer();
|
||||
|
||||
// FIXME: We are discarding all the messages.
|
||||
// XXX FIXME TODO : The discard works because we are doing this all over
|
||||
// again on EVERY INSTANTIATION of the recents controller.
|
||||
// Initial sync: get all information and the last message of all rooms of the user
|
||||
matrixService.initialSync(1, false).then(
|
||||
function(response) {
|
||||
var rooms = response.data.rooms;
|
||||
|
@ -128,6 +126,7 @@ angular.module('eventStreamService', [])
|
|||
// Initial sync is done
|
||||
eventHandlerService.handleInitialSyncDone(response);
|
||||
|
||||
// Start event streaming from that point
|
||||
settings.from = response.data.end;
|
||||
doEventStream(deferred);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue