diff --git a/src/models/event-timeline-set.js b/src/models/event-timeline-set.js index 470d3870ab9..702b3d8fe24 100644 --- a/src/models/event-timeline-set.js +++ b/src/models/event-timeline-set.js @@ -92,6 +92,13 @@ function EventTimelineSet(room, opts) { } utils.inherits(EventTimelineSet, EventEmitter); +/** + * Get all the timelines in this set + * @return {module:models/event-timeline~EventTimeline[]} the timelines in this set + */ +EventTimelineSet.prototype.getTimelines = function() { + return this._timelines; +}; /** * Get the filter object this timeline set is filtered on, if any * @return {?Filter} the optional filter for this timelineSet