1
0
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:
Matthew Hodgson
2016-09-09 18:45:15 +01:00
parent ad7db78829
commit 2c6409a67a

View File

@@ -1722,11 +1722,14 @@ MatrixClient.prototype.paginateEventTimeline = function(eventTimeline, opts) {
if (isNotifTimeline) {
var path = "/notifications";
var params = {
from: token,
limit: ('limit' in opts) ? opts.limit : 30,
only: 'highlight',
};
if (token && token !== "end") {
params.token = token;
}
var self = this;
var promise =
this._http.authedRequestWithPrefix(undefined, "GET", path, params,