mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 08:46:04 -04:00
Support limit and feedback param of initialSync
This commit is contained in:
parent
c585c87c4b
commit
e40d829363
2 changed files with 15 additions and 3 deletions
|
@ -106,11 +106,20 @@ angular.module('matrixService', [])
|
|||
},
|
||||
|
||||
// List all rooms joined or been invited to
|
||||
rooms: function(from, to, limit) {
|
||||
rooms: function(limit, feedback) {
|
||||
// The REST path spec
|
||||
|
||||
var path = "/initialSync";
|
||||
|
||||
return doRequest("GET", path);
|
||||
var params = {};
|
||||
if (limit) {
|
||||
params.limit = limit;
|
||||
}
|
||||
if (feedback) {
|
||||
params.feedback = feedback;
|
||||
}
|
||||
|
||||
return doRequest("GET", path, params);
|
||||
},
|
||||
|
||||
// Joins a room
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue