LHS use getSortedFavoriteChannelIds instead of getFavoriteChannelIds (#2471)

This commit is contained in:
Elias Nahum 2018-12-28 08:32:56 -03:00 committed by GitHub
parent b4b10e17e8
commit 5e1db3497f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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,