diff options
Diffstat (limited to 'app/assets/javascripts/components/features')
-rw-r--r-- | app/assets/javascripts/components/features/ui/containers/status_list_container.jsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/features/ui/containers/status_list_container.jsx b/app/assets/javascripts/components/features/ui/containers/status_list_container.jsx index 4ea599fc0..4757ba448 100644 --- a/app/assets/javascripts/components/features/ui/containers/status_list_container.jsx +++ b/app/assets/javascripts/components/features/ui/containers/status_list_container.jsx @@ -2,6 +2,7 @@ import { connect } from 'react-redux'; import StatusList from '../../../components/status_list'; import { replyCompose } from '../../../actions/compose'; import { reblog, favourite } from '../../../actions/interactions'; +import { expandTimeline } from '../../../actions/timelines'; import { selectStatus } from '../../../reducers/timelines'; const mapStateToProps = function (state, props) { @@ -10,7 +11,7 @@ const mapStateToProps = function (state, props) { }; }; -const mapDispatchToProps = function (dispatch) { +const mapDispatchToProps = function (dispatch, props) { return { onReply: function (status) { dispatch(replyCompose(status)); @@ -22,6 +23,10 @@ const mapDispatchToProps = function (dispatch) { onReblog: function (status) { dispatch(reblog(status)); + }, + + onScrollToBottom: function () { + dispatch(expandTimeline(props.type)); } }; }; |