Category:Jazz albums by Spanish artists
Category:Buika albums
Category:2011 albums// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {connect} from'react-redux';
import {bindActionCreators} from'redux';
import {getTeams} from'mattermost-redux/selectors/entities/team';
import {getOrganization} from'mattermost-redux/selectors/entities/organization';
import {getUsers} from'mattermost-redux/selectors/entities/user';
import {getUsersTeams} from'mattermost-redux/selectors/users/team';
import {bindActionCreators} from'redux-actions';
import * as UsersActions from'mattermost-redux/actions/users';
import {shouldRenderMessages} from'mattermost-redux/actions/messages';
import {MESSAGE_TOKENS_TYPES} from '../../constants';
function mapStateToProps(state) {
const {organizationId, teams, messageType} = state.organization;
return {
currentTeam: getUsersTeams(state),
isOrganizationUser: getUsers(state, {
where: {id: organizationId},
}).isLoggedIn,
showUnread:!!state.user.hasAccessToMessageInbox,
messageType: state.users.team_message_types.indexOf(messageType) > -1,
showNoneMessage: getTeams(state, {id: organizationId}).length === 0,
};
}
function mapDispatchToProps(dispatch) {
return {
actions: bindActionCreators({getTeams}, dispatch),
actions: bindActionCreators({getOrganization}, dispatch), be359ba680
Related links:
Comments