* Use consistent Display Name sorting code throughout the webapp #5159 * fixed broken sorting of teams and channels
Этот коммит содержится в:
коммит произвёл
enahum
родитель
9369cab56c
Коммит
9ba968ce33
@@ -23,8 +23,11 @@ import LocalizationStore from 'stores/localization_store.jsx';
|
||||
export function buildDisplayableChannelList(persistentChannels) {
|
||||
const missingDMChannels = createMissingDirectChannels(persistentChannels);
|
||||
|
||||
const channels = persistentChannels.concat(missingDMChannels).map(completeDirectChannelInfo).filter(isNotDeletedChannel);
|
||||
channels.sort(sortChannelsByDisplayName);
|
||||
const channels = persistentChannels.
|
||||
concat(missingDMChannels).
|
||||
map(completeDirectChannelInfo).
|
||||
filter(isNotDeletedChannel).
|
||||
sort(sortChannelsByDisplayName);
|
||||
|
||||
const favoriteChannels = channels.filter(isFavoriteChannel);
|
||||
const notFavoriteChannels = channels.filter(not(isFavoriteChannel));
|
||||
|
||||
Ссылка в новой задаче
Block a user