summaryrefslogtreecommitdiffstats
path: root/store/sqlstore/channel_store.go
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2018-01-31 13:57:08 -0600
committerJoram Wilander <jwawilander@gmail.com>2018-01-31 14:57:08 -0500
commitc89cf572f7bd22f1e64046b28552dc2e934010ba (patch)
tree21d3ba342df4b902957dea788a630a5b91baca03 /store/sqlstore/channel_store.go
parent1262d254736229618582f0963c9c30c4e66efb98 (diff)
downloadchat-c89cf572f7bd22f1e64046b28552dc2e934010ba.tar.gz
chat-c89cf572f7bd22f1e64046b28552dc2e934010ba.tar.bz2
chat-c89cf572f7bd22f1e64046b28552dc2e934010ba.zip
make channel autocomplete sort case-insensitive (#8176)
Diffstat (limited to 'store/sqlstore/channel_store.go')
-rw-r--r--store/sqlstore/channel_store.go2
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
})