-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix jmap request to server is called when query string is empty in quick search web #3276
base: master
Are you sure you want to change the base?
Conversation
This PR has been deployed to https://linagora.github.io/tmail-flutter/3276. |
|
…y in quick search web
Fixed. Screen.Recording.2024-11-18.at.01.44.15.mov
Currently, we don't have integration test on web. |
core/lib/presentation/views/quick_search/quick_search_suggestion_list.dart
Show resolved
Hide resolved
…is empty in quick search web
|
||
Future<Iterable<P>?> _getListContact(String queryString) async { | ||
try { | ||
return widget.contactSuggestionCallback?.call(queryString); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should await
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, updated
|
||
Future<Iterable<T>?> _getListSuggestion(String queryString) async { | ||
try { | ||
return widget.suggestionsCallback?.call(queryString); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idem
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
|
||
Future<Iterable<R>?> _getListRecent(String queryString) async { | ||
try { | ||
return widget.fetchRecentActionCallback?.call(queryString); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idem
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
…string is empty in quick search web
7c12ae3
Issue
issue-jmap-called-when-search-empty.mov
Root cause
Timer
to debounce, but it doesn't work properly.Solution
-Using debounce_throttle to debounce
Resolved
Screen.Recording.2024-11-15.at.15.35.08.online-video-cutter.com.mp4