PLT-4395 channel switcher autocomplete with any portion of channel name (#4441)
Этот коммит содержится в:
коммит произвёл
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);
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user