* Add conversations API * Add web UI for conversations * Add test for conversations API * Add tests for ConversationAccount * Improve web UI * Rename ConversationAccount to AccountConversation * Remove conversations on block and mute * Change last_status_id to be a denormalization of status_ids * Add optimistic locking
15 lines
616 B
JavaScript
15 lines
616 B
JavaScript
import { connect } from 'react-redux';
|
|
import ConversationsList from '../components/conversations_list';
|
|
import { expandConversations } from '../../../actions/conversations';
|
|
|
|
const mapStateToProps = state => ({
|
|
conversationIds: state.getIn(['conversations', 'items']).map(x => x.get('id')),
|
|
isLoading: state.getIn(['conversations', 'isLoading'], true),
|
|
hasMore: state.getIn(['conversations', 'hasMore'], false),
|
|
});
|
|
|
|
const mapDispatchToProps = dispatch => ({
|
|
onLoadMore: maxId => dispatch(expandConversations({ maxId })),
|
|
});
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(ConversationsList);
|