summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}
}