You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-12-01 04:43:29 +03:00
fix lint
This commit is contained in:
@@ -1719,9 +1719,12 @@ MatrixClient.prototype.paginateEventTimeline = function(eventTimeline, opts) {
|
|||||||
return pendingRequest;
|
return pendingRequest;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var path, params, promise;
|
||||||
|
var self = this;
|
||||||
|
|
||||||
if (isNotifTimeline) {
|
if (isNotifTimeline) {
|
||||||
var path = "/notifications";
|
path = "/notifications";
|
||||||
var params = {
|
params = {
|
||||||
limit: ('limit' in opts) ? opts.limit : 30,
|
limit: ('limit' in opts) ? opts.limit : 30,
|
||||||
only: 'highlight',
|
only: 'highlight',
|
||||||
};
|
};
|
||||||
@@ -1730,8 +1733,7 @@ MatrixClient.prototype.paginateEventTimeline = function(eventTimeline, opts) {
|
|||||||
params.token = token;
|
params.token = token;
|
||||||
}
|
}
|
||||||
|
|
||||||
var self = this;
|
promise =
|
||||||
var promise =
|
|
||||||
this._http.authedRequestWithPrefix(undefined, "GET", path, params,
|
this._http.authedRequestWithPrefix(undefined, "GET", path, params,
|
||||||
undefined, httpApi.PREFIX_UNSTABLE
|
undefined, httpApi.PREFIX_UNSTABLE
|
||||||
).then(function(res) {
|
).then(function(res) {
|
||||||
@@ -1769,10 +1771,10 @@ MatrixClient.prototype.paginateEventTimeline = function(eventTimeline, opts) {
|
|||||||
throw new Error("Unknown room " + eventTimeline.getRoomId());
|
throw new Error("Unknown room " + eventTimeline.getRoomId());
|
||||||
}
|
}
|
||||||
|
|
||||||
var path = utils.encodeUri(
|
path = utils.encodeUri(
|
||||||
"/rooms/$roomId/messages", {$roomId: eventTimeline.getRoomId()}
|
"/rooms/$roomId/messages", {$roomId: eventTimeline.getRoomId()}
|
||||||
);
|
);
|
||||||
var params = {
|
params = {
|
||||||
from: token,
|
from: token,
|
||||||
limit: ('limit' in opts) ? opts.limit : 30,
|
limit: ('limit' in opts) ? opts.limit : 30,
|
||||||
dir: dir
|
dir: dir
|
||||||
@@ -1785,9 +1787,7 @@ MatrixClient.prototype.paginateEventTimeline = function(eventTimeline, opts) {
|
|||||||
params.filter = JSON.stringify(filter.getRoomTimelineFilterComponent());
|
params.filter = JSON.stringify(filter.getRoomTimelineFilterComponent());
|
||||||
}
|
}
|
||||||
|
|
||||||
var self = this;
|
promise =
|
||||||
|
|
||||||
var promise =
|
|
||||||
this._http.authedRequest(undefined, "GET", path, params
|
this._http.authedRequest(undefined, "GET", path, params
|
||||||
).then(function(res) {
|
).then(function(res) {
|
||||||
var token = res.end;
|
var token = res.end;
|
||||||
|
|||||||
Reference in New Issue
Block a user