* Channel list drawer * Get channels by category * Fix and connect websocket * Fix Select first team using the team members * create loadMe and fix login actions to loads the teams * Add android back button handler for the channel drawer * Channel drawer styling and functionality * Mark channel as viewed and fixed reset unread counts * Unread above/below indicators * Improve performance replacing ScrollView with ListView * Fix unread indicators * Addressing review feedback
32 lines
925 B
JavaScript
32 lines
925 B
JavaScript
// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
import {bindActionCreators} from 'redux';
|
|
import {connect} from 'react-redux';
|
|
|
|
import {selectTeam} from 'service/actions/teams';
|
|
import {init as websocket} from 'service/actions/websocket';
|
|
import {goToChannelView} from 'app/actions/navigation';
|
|
|
|
import SelectTeamView from './select_team.js';
|
|
|
|
function mapStateToProps(state) {
|
|
return {
|
|
config: state.entities.general.config,
|
|
teamsRequest: state.requests.teams.allTeams,
|
|
teams: state.entities.teams.teams,
|
|
myMembers: state.entities.teams.myMembers
|
|
};
|
|
}
|
|
|
|
function mapDispatchToProps(dispatch) {
|
|
return {
|
|
actions: bindActionCreators({
|
|
goToChannelView,
|
|
selectTeam,
|
|
websocket
|
|
}, dispatch)
|
|
};
|
|
}
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(SelectTeamView);
|