Fix channel autocomplete in search to not include private channels in public section (#1617)

This commit is contained in:
Elias Nahum 2018-04-25 13:25:47 -03:00 committed by GitHub
parent b016d203d8
commit ac6e5fda79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -193,7 +193,7 @@ export const filterPublicChannels = createSelector(
);
} else {
channels = myChannels.filter((c) => {
return (c.type === General.OPEN_CHANNEL || c.type === General.PRIVATE_CHANNEL);
return (c.type === General.OPEN_CHANNEL);
}).concat(otherChannels);
}