mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 09:06:06 -04:00
Change the way pagination works to support out of order events.
This commit is contained in:
parent
1422a22970
commit
598a1d8ff9
8 changed files with 226 additions and 81 deletions
|
@ -25,7 +25,6 @@ the eventHandlerService.
|
|||
angular.module('eventStreamService', [])
|
||||
.factory('eventStreamService', ['$q', '$timeout', 'matrixService', 'eventHandlerService', function($q, $timeout, matrixService, eventHandlerService) {
|
||||
var END = "END";
|
||||
var START = "START";
|
||||
var TIMEOUT_MS = 30000;
|
||||
var ERR_TIMEOUT_MS = 5000;
|
||||
|
||||
|
|
|
@ -230,8 +230,8 @@ angular.module('matrixService', [])
|
|||
path = path.replace("$room_id", room_id);
|
||||
var params = {
|
||||
from: from_token,
|
||||
to: "START",
|
||||
limit: limit
|
||||
limit: limit,
|
||||
dir: 'b'
|
||||
};
|
||||
return doRequest("GET", path, params);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue