summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-11-04 13:28:23 -0300
committerChristopher Speller <crspeller@gmail.com>2016-11-04 12:28:23 -0400
commit7403bbce69baeabd7b4cd1ef316513a9fc6807c5 (patch)
tree0810b5e1cb010316dd649ef55ffe81ea361122b6 /webapp
parent00787974d0a87b1a54f15cf75d2dab398546b87e (diff)
downloadchat-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')
-rw-r--r--webapp/components/suggestion/switch_channel_provider.jsx2
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);
}
}