mirror of https://github.com/zulip/zulip.git
Honor the case of the user's subject in the first autocomplete option
(imported from commit 7820fc7c8c45498407f857c20755f1bcdc292e1f)
This commit is contained in:
parent
51f9ace595
commit
b96f41a991
|
@ -200,7 +200,7 @@ exports.initialize = function () {
|
|||
if (subject_dict.hasOwnProperty(stream_name)) {
|
||||
// If query is an exact match, we don't need to add it to the array of options
|
||||
for (i = 0; i < subject_dict[stream_name].length; i++) {
|
||||
if (subject_dict[stream_name][i].toLowerCase() === query.toLowerCase()) {
|
||||
if (subject_dict[stream_name][i] === query) {
|
||||
return subject_dict[stream_name];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue