1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-29 16:43:09 +03:00

initial PR fixes

This commit is contained in:
Matthew Hodgson
2016-09-08 17:51:14 +01:00
parent 13c186dfbe
commit 7dfc4a404c
2 changed files with 17 additions and 18 deletions

View File

@@ -70,7 +70,7 @@ function EventTimelineSet(roomId, room, opts) {
this._timelines = [this._liveTimeline];
this._eventIdToTimeline = {};
this._filter = opts.filter;
this._filter = opts.filter || null;
}
utils.inherits(EventTimelineSet, EventEmitter);
@@ -639,16 +639,3 @@ module.exports = EventTimelineSet;
* }
* });
*/
/**
* Fires whenever the live timeline in a room is reset.
*
* When we get a 'limited' sync (for example, after a network outage), we reset
* the live timeline to be empty before adding the recent events to the new
* timeline. This event is fired after the timeline is reset, and before the
* new events are added.
*
* @event module:client~MatrixClient#"Room.timelineReset"
* @param {Room} room The room whose live timeline was reset.
*/