TF-3025 Correctly update the action for the selection list when performing some action read/start/... on each element

This commit is contained in:
dab246
2024-10-02 00:56:51 +07:00
committed by Dat H. Pham
parent 5d6d3afb78
commit 8d31ee4462
4 changed files with 288 additions and 111 deletions
@@ -1,5 +1,6 @@
import 'package:core/core.dart';
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
import 'package:dartz/dartz.dart';
import 'package:jmap_dart_client/jmap/account_id.dart';
import 'package:jmap_dart_client/jmap/core/filter/filter.dart';
@@ -26,11 +27,11 @@ class SearchEmailInteractor {
Set<Comparator>? sort,
Filter? filter,
Properties? properties,
bool isRefreshChange = false,
bool needRefreshSearchState = false,
}
) async* {
try {
if (isRefreshChange) {
if (needRefreshSearchState) {
yield Right(RefreshingSearchState());
} else {
yield Right(SearchingState());