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
Lint
This commit is contained in:
@@ -20,6 +20,7 @@ limitations under the License.
|
|||||||
const EventEmitter = require("events").EventEmitter;
|
const EventEmitter = require("events").EventEmitter;
|
||||||
const utils = require("../utils");
|
const utils = require("../utils");
|
||||||
const EventTimeline = require("./event-timeline");
|
const EventTimeline = require("./event-timeline");
|
||||||
|
const RoomState = require("./room-state");
|
||||||
|
|
||||||
// var DEBUG = false;
|
// var DEBUG = false;
|
||||||
const DEBUG = true;
|
const DEBUG = true;
|
||||||
@@ -154,7 +155,9 @@ EventTimelineSet.prototype.replaceEventId = function(oldEventId, newEventId) {
|
|||||||
*
|
*
|
||||||
* @fires module:client~MatrixClient#event:"Room.timelineReset"
|
* @fires module:client~MatrixClient#event:"Room.timelineReset"
|
||||||
*/
|
*/
|
||||||
EventTimelineSet.prototype.resetLiveTimeline = function(backPaginationToken, forwardPaginationToken) {
|
EventTimelineSet.prototype.resetLiveTimeline = function(
|
||||||
|
backPaginationToken, forwardPaginationToken,
|
||||||
|
) {
|
||||||
// if timeline support is disabled, forget about the old timelines
|
// if timeline support is disabled, forget about the old timelines
|
||||||
const resetAllTimelines = !this._timelineSupport || !forwardPaginationToken;
|
const resetAllTimelines = !this._timelineSupport || !forwardPaginationToken;
|
||||||
|
|
||||||
@@ -194,7 +197,9 @@ EventTimelineSet.prototype.resetLiveTimeline = function(backPaginationToken, for
|
|||||||
}
|
}
|
||||||
this._liveTimeline.initialiseState(events);
|
this._liveTimeline.initialiseState(events);
|
||||||
|
|
||||||
this._liveTimeline.setPaginationToken(forwardPaginationToken, EventTimeline.FORWARDS);
|
this._liveTimeline.setPaginationToken(
|
||||||
|
forwardPaginationToken, EventTimeline.FORWARDS,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// make sure we set the pagination token before firing timelineReset,
|
// make sure we set the pagination token before firing timelineReset,
|
||||||
|
|||||||
@@ -210,7 +210,9 @@ Room.prototype.getLiveTimeline = function() {
|
|||||||
*/
|
*/
|
||||||
Room.prototype.resetLiveTimeline = function(backPaginationToken, forwardPaginationToken) {
|
Room.prototype.resetLiveTimeline = function(backPaginationToken, forwardPaginationToken) {
|
||||||
for (let i = 0; i < this._timelineSets.length; i++) {
|
for (let i = 0; i < this._timelineSets.length; i++) {
|
||||||
this._timelineSets[i].resetLiveTimeline(backPaginationToken, forwardPaginationToken);
|
this._timelineSets[i].resetLiveTimeline(
|
||||||
|
backPaginationToken, forwardPaginationToken,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
this._fixUpLegacyTimelineFields();
|
this._fixUpLegacyTimelineFields();
|
||||||
|
|||||||
Reference in New Issue
Block a user