diff options
author | Chris <ccbrown112@gmail.com> | 2018-01-31 13:57:08 -0600 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2018-01-31 14:57:08 -0500 |
commit | c89cf572f7bd22f1e64046b28552dc2e934010ba (patch) | |
tree | 21d3ba342df4b902957dea788a630a5b91baca03 /store | |
parent | 1262d254736229618582f0963c9c30c4e66efb98 (diff) | |
download | chat-c89cf572f7bd22f1e64046b28552dc2e934010ba.tar.gz chat-c89cf572f7bd22f1e64046b28552dc2e934010ba.tar.bz2 chat-c89cf572f7bd22f1e64046b28552dc2e934010ba.zip |
make channel autocomplete sort case-insensitive (#8176)
Diffstat (limited to 'store')
-rw-r--r-- | store/sqlstore/channel_store.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/store/sqlstore/channel_store.go b/store/sqlstore/channel_store.go index c2979526c..75a615aee 100644 --- a/store/sqlstore/channel_store.go +++ b/store/sqlstore/channel_store.go @@ -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 }) |