Add canResetTimeline callback and thread it through to TimelinePanel

This commit is contained in:
Kegan Dougal 2017-03-22 15:06:52 +00:00
parent 544a6593e1
commit 4cebded04f
4 changed files with 41 additions and 1 deletions

View file

@ -490,6 +490,13 @@ module.exports = React.createClass({
}
},
canResetTimeline: function() {
if (!this.refs.messagePanel) {
return true;
}
return this.refs.messagePanel.canResetTimeline();
},
// called when state.room is first initialised (either at initial load,
// after a successful peek, or after we join the room).
_onRoomLoaded: function(room) {