You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-29 16:43:09 +03:00
special case 'end' token
This commit is contained in:
@@ -1722,11 +1722,14 @@ MatrixClient.prototype.paginateEventTimeline = function(eventTimeline, opts) {
|
|||||||
if (isNotifTimeline) {
|
if (isNotifTimeline) {
|
||||||
var path = "/notifications";
|
var path = "/notifications";
|
||||||
var params = {
|
var params = {
|
||||||
from: token,
|
|
||||||
limit: ('limit' in opts) ? opts.limit : 30,
|
limit: ('limit' in opts) ? opts.limit : 30,
|
||||||
only: 'highlight',
|
only: 'highlight',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (token && token !== "end") {
|
||||||
|
params.token = token;
|
||||||
|
}
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
var promise =
|
var promise =
|
||||||
this._http.authedRequestWithPrefix(undefined, "GET", path, params,
|
this._http.authedRequestWithPrefix(undefined, "GET", path, params,
|
||||||
|
|||||||
Reference in New Issue
Block a user