mattermost-mobile/app/components/post_list/index.js
Chris Duarte fd0ca606bb Use post retry actions to avoid missing messages (#796)
* Use post retry actions to avoid missing messages

* Review feedback

* Fix race condition and update redux-offline

* Review feedback
2017-08-01 19:09:57 -04:00

27 lines
698 B
JavaScript

// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';
import {refreshChannelWithRetry} from 'app/actions/views/channel';
import {getTheme} from 'app/selectors/preferences';
import PostList from './post_list';
function mapStateToProps(state, ownProps) {
return {
...ownProps,
theme: getTheme(state)
};
}
function mapDispatchToProps(dispatch) {
return {
actions: bindActionCreators({
refreshChannelWithRetry
}, dispatch)
};
}
export default connect(mapStateToProps, mapDispatchToProps)(PostList);