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
change TimelineWindow to take a timelineSet rather than a Room
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user