File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -192,27 +192,27 @@ class MentionAutocompleteView extends ChangeNotifier {
192
192
final PerAccountStore store;
193
193
final Narrow narrow;
194
194
195
- MentionAutocompleteQuery ? _currentQuery ;
195
+ MentionAutocompleteQuery ? _query ;
196
196
set query (MentionAutocompleteQuery query) {
197
- _currentQuery = query;
197
+ _query = query;
198
198
_startSearch (query);
199
199
}
200
200
201
201
/// Recompute user results for the current query, if any.
202
202
///
203
203
/// Called in particular when we get a [RealmUserEvent] .
204
204
void refreshStaleUserResults () {
205
- if (_currentQuery != null ) {
206
- _startSearch (_currentQuery ! );
205
+ if (_query != null ) {
206
+ _startSearch (_query ! );
207
207
}
208
208
}
209
209
210
210
/// Called when the app is reassembled during debugging, e.g. for hot reload.
211
211
///
212
212
/// This will redo the search from scratch for the current query, if any.
213
213
void reassemble () {
214
- if (_currentQuery != null ) {
215
- _startSearch (_currentQuery ! );
214
+ if (_query != null ) {
215
+ _startSearch (_query ! );
216
216
}
217
217
}
218
218
@@ -251,7 +251,7 @@ class MentionAutocompleteView extends ChangeNotifier {
251
251
// CPU perf: End this task; enqueue a new one for resuming this work
252
252
await Future (() {});
253
253
254
- if (query != _currentQuery || ! hasListeners) { // false if [dispose] has been called.
254
+ if (query != _query || ! hasListeners) { // false if [dispose] has been called.
255
255
return null ;
256
256
}
257
257
You can’t perform that action at this time.
0 commit comments