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
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue