Skip to content

Commit

Permalink
fixup! TF-3334 Skip getting stored state in interactor when performin…
Browse files Browse the repository at this point in the history
…g actions with email and mailbox
  • Loading branch information
dab246 committed Dec 23, 2024
1 parent 65fd5d9 commit f8f5350
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,6 @@ class SearchEmailController extends BaseController
? UnsignedInt(listResultSearch.length)
: ThreadConstants.defaultLimit;

if (limit.value > ThreadConstants.maximumEmailQueryLimit &&
resultSearchScrollController.hasClients) {
resultSearchScrollController.jumpTo(0);
}

_updateSimpleSearchFilter(
beforeOption: const None(),
positionOption: option(searchEmailFilter.value.sortOrderType.isScrollByPosition(), 0),
Expand Down
1 change: 0 additions & 1 deletion lib/features/thread/domain/constants/thread_constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import 'package:model/email/email_property.dart';

class ThreadConstants {
static const maxCountEmails = 20;
static const maximumEmailQueryLimit = 256;
static final defaultLimit = UnsignedInt(maxCountEmails);
static final propertiesDefault = Properties({
EmailProperty.id,
Expand Down
4 changes: 0 additions & 4 deletions lib/features/thread/presentation/thread_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -559,10 +559,6 @@ class ThreadController extends BaseController with EmailActionController {

Future<void> _refreshChangeSearchEmail() async {
log('ThreadController::_refreshChangeSearchEmail:');
if (limitEmailFetched.value > ThreadConstants.maximumEmailQueryLimit &&
listEmailController.hasClients) {
listEmailController.jumpTo(0);
}
canSearchMore = false;
searchController.updateFilterEmail(
positionOption: option(
Expand Down

0 comments on commit f8f5350

Please sign in to comment.