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

matrixService.rooms must be renamed matrixService.initialSync now

parent 21d6ce23
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,7 @@ angular.module('eventStreamService', [])
var deferred = $q.defer();
// FIXME: We are discarding all the messages.
matrixService.rooms(1, false).then(
matrixService.initialSync(1, false).then(
function(response) {
var rooms = response.data.rooms;
for (var i = 0; i < rooms.length; ++i) {
......
......@@ -130,8 +130,9 @@ angular.module('matrixService', [])
return doRequest("POST", path, undefined, req);
},
// List all rooms joined or been invited to
rooms: function(limit, feedback) {
// Get the user's current state: his presence, the list of his rooms with
// the last {limit} events
initialSync: function(limit, feedback) {
// The REST path spec
var path = "/initialSync";
......
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