From 7403bbce69baeabd7b4cd1ef316513a9fc6807c5 Mon Sep 17 00:00:00 2001 From: enahum Date: Fri, 4 Nov 2016 13:28:23 -0300 Subject: PLT-4395 channel switcher autocomplete with any portion of channel name (#4441) --- webapp/components/suggestion/switch_channel_provider.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webapp') diff --git a/webapp/components/suggestion/switch_channel_provider.jsx b/webapp/components/suggestion/switch_channel_provider.jsx index 41ac0732a..8178722ef 100644 --- a/webapp/components/suggestion/switch_channel_provider.jsx +++ b/webapp/components/suggestion/switch_channel_provider.jsx @@ -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); } } -- cgit v1.2.3-1-g7c22