make channel autocomplete sort case-insensitive (#8176)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
1262d25473
Коммит
c89cf572f7
@@ -1293,7 +1293,7 @@ func (s SqlChannelStore) AutocompleteInTeam(teamId string, term string) store.St
|
||||
}
|
||||
|
||||
sort.Slice(channels, func(a, b int) bool {
|
||||
return channels[a].DisplayName < channels[b].DisplayName
|
||||
return strings.ToLower(channels[a].DisplayName) < strings.ToLower(channels[b].DisplayName)
|
||||
})
|
||||
result.Data = &channels
|
||||
})
|
||||
|
||||
Ссылка в новой задаче
Block a user