diff options
author | enahum <nahumhbl@gmail.com> | 2016-11-04 13:28:23 -0300 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-11-04 12:28:23 -0400 |
commit | 7403bbce69baeabd7b4cd1ef316513a9fc6807c5 (patch) | |
tree | 0810b5e1cb010316dd649ef55ffe81ea361122b6 /webapp/components | |
parent | 00787974d0a87b1a54f15cf75d2dab398546b87e (diff) | |
download | chat-7403bbce69baeabd7b4cd1ef316513a9fc6807c5.tar.gz chat-7403bbce69baeabd7b4cd1ef316513a9fc6807c5.tar.bz2 chat-7403bbce69baeabd7b4cd1ef316513a9fc6807c5.zip |
PLT-4395 channel switcher autocomplete with any portion of channel name (#4441)
Diffstat (limited to 'webapp/components')
-rw-r--r-- | webapp/components/suggestion/switch_channel_provider.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |