add delete_email_rule feature
This commit is contained in:
@@ -1,18 +1,21 @@
|
||||
import 'package:equatable/equatable.dart';
|
||||
import 'package:jmap_dart_client/jmap/account_id.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/state.dart';
|
||||
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
|
||||
import 'package:jmap_dart_client/jmap/mail/mailbox/mailbox.dart';
|
||||
import 'package:tmail_ui_user/features/email/data/network/email_api.dart';
|
||||
import 'package:tmail_ui_user/features/thread/data/network/thread_api.dart';
|
||||
|
||||
class EmptyTrashFolderArguments with EquatableMixin {
|
||||
AccountId accountId;
|
||||
MailboxId trashMailboxId;
|
||||
final AccountId accountId;
|
||||
final MailboxId trashMailboxId;
|
||||
final ThreadAPI threadAPI;
|
||||
final EmailAPI emailAPI;
|
||||
|
||||
EmptyTrashFolderArguments(this.threadAPI, this.emailAPI, this.accountId, this.trashMailboxId);
|
||||
EmptyTrashFolderArguments(
|
||||
this.threadAPI,
|
||||
this.emailAPI,
|
||||
this.accountId,
|
||||
this.trashMailboxId,
|
||||
);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [accountId, trashMailboxId];
|
||||
|
||||
@@ -108,6 +108,7 @@ class ThreadController extends BaseController {
|
||||
final ScrollController listEmailController = ScrollController();
|
||||
late Worker mailboxWorker, searchWorker, dashboardActionWorker, viewStateWorker, advancedSearchFilterWorker;
|
||||
|
||||
|
||||
Set<Comparator>? get _sortOrder => <Comparator>{}
|
||||
..add(EmailComparator(EmailComparatorProperty.receivedAt)
|
||||
..setIsAscending(false));
|
||||
@@ -320,7 +321,11 @@ class ThreadController extends BaseController {
|
||||
}
|
||||
|
||||
void _initializeIsolateExecutor() async {
|
||||
await _isolateExecutor.warmUp(log: BuildUtils.isDebugMode);
|
||||
try {
|
||||
await _isolateExecutor.warmUp();
|
||||
} catch(e) {
|
||||
log('ThreadController::_initializeIsolateExecutor(): exception: $e');
|
||||
}
|
||||
}
|
||||
|
||||
void _clearWorker() {
|
||||
|
||||
Reference in New Issue
Block a user