Skip to content

Commit b08f5d2

Browse files
committed
autocomplete [nfc]: s/_currentQuery/_query/ in MentionAutocompleteView
1 parent 1b51201 commit b08f5d2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/model/autocomplete.dart

+7-7
Original file line numberDiff line numberDiff line change
@@ -192,27 +192,27 @@ class MentionAutocompleteView extends ChangeNotifier {
192192
final PerAccountStore store;
193193
final Narrow narrow;
194194

195-
MentionAutocompleteQuery? _currentQuery;
195+
MentionAutocompleteQuery? _query;
196196
set query(MentionAutocompleteQuery query) {
197-
_currentQuery = query;
197+
_query = query;
198198
_startSearch(query);
199199
}
200200

201201
/// Recompute user results for the current query, if any.
202202
///
203203
/// Called in particular when we get a [RealmUserEvent].
204204
void refreshStaleUserResults() {
205-
if (_currentQuery != null) {
206-
_startSearch(_currentQuery!);
205+
if (_query != null) {
206+
_startSearch(_query!);
207207
}
208208
}
209209

210210
/// Called when the app is reassembled during debugging, e.g. for hot reload.
211211
///
212212
/// This will redo the search from scratch for the current query, if any.
213213
void reassemble() {
214-
if (_currentQuery != null) {
215-
_startSearch(_currentQuery!);
214+
if (_query != null) {
215+
_startSearch(_query!);
216216
}
217217
}
218218

@@ -251,7 +251,7 @@ class MentionAutocompleteView extends ChangeNotifier {
251251
// CPU perf: End this task; enqueue a new one for resuming this work
252252
await Future(() {});
253253

254-
if (query != _currentQuery || !hasListeners) { // false if [dispose] has been called.
254+
if (query != _query || !hasListeners) { // false if [dispose] has been called.
255255
return null;
256256
}
257257

0 commit comments

Comments
 (0)