matrixService.rooms must be renamed matrixService.initialSync now

This commit is contained in:
Emmanuel ROHEE 2014-09-08 18:21:41 +02:00
parent 21d6ce2380
commit 9a5f224931
2 changed files with 4 additions and 3 deletions

View File

@ -105,7 +105,7 @@ angular.module('eventStreamService', [])
var deferred = $q.defer(); var deferred = $q.defer();
// FIXME: We are discarding all the messages. // FIXME: We are discarding all the messages.
matrixService.rooms(1, false).then( matrixService.initialSync(1, false).then(
function(response) { function(response) {
var rooms = response.data.rooms; var rooms = response.data.rooms;
for (var i = 0; i < rooms.length; ++i) { for (var i = 0; i < rooms.length; ++i) {

View File

@ -130,8 +130,9 @@ angular.module('matrixService', [])
return doRequest("POST", path, undefined, req); return doRequest("POST", path, undefined, req);
}, },
// List all rooms joined or been invited to // Get the user's current state: his presence, the list of his rooms with
rooms: function(limit, feedback) { // the last {limit} events
initialSync: function(limit, feedback) {
// The REST path spec // The REST path spec
var path = "/initialSync"; var path = "/initialSync";