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

change TimelineWindow to take a timelineSet rather than a Room

This commit is contained in:
Matthew Hodgson
2016-09-04 13:57:56 +01:00
parent 4ff2ad9fac
commit 2daa1b6007
5 changed files with 73 additions and 46 deletions

View File

@@ -244,6 +244,20 @@ Room.prototype._fixUpLegacyTimelineFields = function() {
this.currentState = this._timelineSets[0].getLiveTimeline().getState(EventTimeline.FORWARDS);
};
/**
* Return the timeline sets for this room
*/
Room.prototype.getTimelineSets = function() {
return this._timelineSets;
};
/**
* Return the notification timeline set for this room
*/
Room.prototype.getNotifTimelineSet = function() {
return this._notifTimelineSet;
};
/**
* Get the timeline which contains the given event from the unfiltered set, if any
*