We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2795e98 commit df0d607Copy full SHA for df0d607
lib/model/autocomplete.dart
@@ -947,6 +947,8 @@ class TopicAutocompleteQuery extends AutocompleteQuery {
947
return store.realmEmptyTopicDisplayName.toLowerCase()
948
.contains(raw.toLowerCase());
949
}
950
+ // This checks for inequality because there is nothing to autocomplete to
951
+ // when `raw` already matches the topic exactly.
952
return topic.displayName != raw
953
// ignore: unnecessary_non_null_assertion // null topic names soon to be enabled
954
&& topic.displayName!.toLowerCase().contains(raw.toLowerCase());
0 commit comments