LHS use getSortedFavoriteChannelIds instead of getFavoriteChannelIds (#2471)

This commit is contained in:
Elias Nahum 2018-12-28 08:32:56 -03:00
parent fa10680ef3
commit 776a9d8fad
No known key found for this signature in database
GPG key ID: E038DB71E0B61702

View file

@ -5,7 +5,7 @@ import {connect} from 'react-redux';
import {General} from 'mattermost-redux/constants';
import {
getFavoriteChannelIds,
getSortedFavoriteChannelIds,
getSortedUnreadChannelIds,
getOrderedChannelIds,
} from 'mattermost-redux/selectors/entities/channels';
@ -39,7 +39,7 @@ function mapStateToProps(state) {
const isSystemAdmin = checkIsSystemAdmin(roles);
const sidebarPrefs = getSidebarPreferences(state);
const unreadChannelIds = getSortedUnreadChannelIds(state, null);
const favoriteChannelIds = getFavoriteChannelIds(state);
const favoriteChannelIds = getSortedFavoriteChannelIds(state);
const orderedChannelIds = filterZeroUnreads(getOrderedChannelIds(
state,
null,