Add canResetTimeline callback and thread it through to TimelinePanel
This commit is contained in:
parent
544a6593e1
commit
4cebded04f
4 changed files with 41 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue