PLT-4395 channel switcher autocomplete with any portion of channel name (#4441)

Этот коммит содержится в:
enahum
2016-11-04 13:28:23 -03:00
коммит произвёл Christopher Speller
родитель 00787974d0
Коммит 7403bbce69

Просмотреть файл

@@ -72,7 +72,7 @@ export default class SwitchChannelProvider {
for (const id of Object.keys(allChannels)) {
const channel = allChannels[id];
if (channel.display_name.toLowerCase().startsWith(channelPrefix.toLowerCase())) {
if (channel.display_name.toLowerCase().indexOf(channelPrefix.toLowerCase()) !== -1) {
channels.push(channel);
}
}