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

@ -431,6 +431,10 @@ var TimelinePanel = React.createClass({
}
},
canResetTimeline: function() {
return this.refs.messagePanel && this.refs.messagePanel.isAtBottom();
},
onRoomRedaction: function(ev, room) {
if (this.unmounted) return;