diff --git a/lib/features/mailbox/presentation/mailbox_controller.dart b/lib/features/mailbox/presentation/mailbox_controller.dart index ef6fc7cb7a..4f92ae1cc2 100644 --- a/lib/features/mailbox/presentation/mailbox_controller.dart +++ b/lib/features/mailbox/presentation/mailbox_controller.dart @@ -29,7 +29,6 @@ import 'package:tmail_ui_user/features/email/domain/state/delete_email_permanent import 'package:tmail_ui_user/features/email/domain/state/delete_multiple_emails_permanently_state.dart'; import 'package:tmail_ui_user/features/email/domain/state/get_restored_deleted_message_state.dart'; import 'package:tmail_ui_user/features/email/domain/state/mark_as_email_read_state.dart'; -import 'package:tmail_ui_user/features/email/domain/state/move_to_mailbox_state.dart'; import 'package:tmail_ui_user/features/email/presentation/model/composer_arguments.dart'; import 'package:tmail_ui_user/features/home/data/exceptions/session_exceptions.dart'; import 'package:tmail_ui_user/features/home/domain/extensions/session_extensions.dart'; @@ -92,7 +91,6 @@ import 'package:tmail_ui_user/features/thread/domain/model/search_query.dart'; import 'package:tmail_ui_user/features/thread/domain/state/empty_spam_folder_state.dart'; import 'package:tmail_ui_user/features/thread/domain/state/empty_trash_folder_state.dart'; import 'package:tmail_ui_user/features/thread/domain/state/mark_as_multiple_email_read_state.dart'; -import 'package:tmail_ui_user/features/thread/domain/state/move_multiple_email_to_mailbox_state.dart'; import 'package:tmail_ui_user/main/localizations/app_localizations.dart'; import 'package:tmail_ui_user/main/routes/app_routes.dart'; import 'package:tmail_ui_user/main/routes/dialog_router.dart'; @@ -272,10 +270,6 @@ class MailboxController extends BaseMailboxController _refreshMailboxChanges(currentMailboxState: success.currentMailboxState); } else if (success is MarkAsMultipleEmailReadHasSomeEmailFailure) { _refreshMailboxChanges(currentMailboxState: success.currentMailboxState); - } else if (success is MoveMultipleEmailToMailboxAllSuccess) { - _refreshMailboxChanges(currentMailboxState: success.currentMailboxState); - } else if (success is MoveMultipleEmailToMailboxHasSomeEmailFailure) { - _refreshMailboxChanges(currentMailboxState: success.currentMailboxState); } else if (success is DeleteMultipleEmailsPermanentlyAllSuccess) { _refreshMailboxChanges(currentMailboxState: success.currentMailboxState); } else if (success is DeleteMultipleEmailsPermanentlyHasSomeEmailFailure) { @@ -284,8 +278,6 @@ class MailboxController extends BaseMailboxController _refreshMailboxChanges(currentMailboxState: success.currentMailboxState); } else if (success is MarkAsEmailReadSuccess) { _refreshMailboxChanges(currentMailboxState: success.currentMailboxState); - } else if (success is MoveToMailboxSuccess) { - _refreshMailboxChanges(currentMailboxState: success.currentMailboxState); } else if (success is DeleteEmailPermanentlySuccess) { _refreshMailboxChanges(currentMailboxState: success.currentMailboxState); } else if (success is SaveEmailAsDraftsSuccess) { diff --git a/lib/features/search/email/presentation/search_email_controller.dart b/lib/features/search/email/presentation/search_email_controller.dart index a6f79a9a53..a02c2327a2 100644 --- a/lib/features/search/email/presentation/search_email_controller.dart +++ b/lib/features/search/email/presentation/search_email_controller.dart @@ -35,7 +35,6 @@ import 'package:tmail_ui_user/features/email/domain/state/delete_email_permanent import 'package:tmail_ui_user/features/email/domain/state/delete_multiple_emails_permanently_state.dart'; import 'package:tmail_ui_user/features/email/domain/state/mark_as_email_read_state.dart'; import 'package:tmail_ui_user/features/email/domain/state/mark_as_email_star_state.dart'; -import 'package:tmail_ui_user/features/email/domain/state/move_to_mailbox_state.dart'; import 'package:tmail_ui_user/features/email/domain/state/store_event_attendance_status_state.dart'; import 'package:tmail_ui_user/features/email/domain/state/unsubscribe_email_state.dart'; import 'package:tmail_ui_user/features/email/presentation/utils/email_utils.dart'; @@ -66,7 +65,6 @@ import 'package:tmail_ui_user/features/thread/domain/state/empty_spam_folder_sta import 'package:tmail_ui_user/features/thread/domain/state/empty_trash_folder_state.dart'; import 'package:tmail_ui_user/features/thread/domain/state/mark_as_multiple_email_read_state.dart'; import 'package:tmail_ui_user/features/thread/domain/state/mark_as_star_multiple_email_state.dart'; -import 'package:tmail_ui_user/features/thread/domain/state/move_multiple_email_to_mailbox_state.dart'; import 'package:tmail_ui_user/features/thread/domain/state/search_email_state.dart'; import 'package:tmail_ui_user/features/thread/domain/state/search_more_email_state.dart'; import 'package:tmail_ui_user/features/thread/domain/usecases/search_email_interactor.dart'; @@ -251,15 +249,12 @@ class SearchEmailController extends BaseController dashBoardViewStateWorker = ever(mailboxDashBoardController.viewState, (viewState) { viewState.map((success) { if (success is MarkAsEmailReadSuccess || - success is MoveToMailboxSuccess || success is MarkAsStarEmailSuccess || success is DeleteEmailPermanentlySuccess || success is MarkAsMultipleEmailReadAllSuccess || success is MarkAsMultipleEmailReadHasSomeEmailFailure || success is MarkAsStarMultipleEmailAllSuccess || success is MarkAsStarMultipleEmailHasSomeEmailFailure || - success is MoveMultipleEmailToMailboxAllSuccess || - success is MoveMultipleEmailToMailboxHasSomeEmailFailure || success is EmptyTrashFolderSuccess || success is EmptySpamFolderSuccess || success is DeleteMultipleEmailsPermanentlyAllSuccess || diff --git a/lib/features/thread/presentation/thread_controller.dart b/lib/features/thread/presentation/thread_controller.dart index e6ad7cedae..d4af23dce2 100644 --- a/lib/features/thread/presentation/thread_controller.dart +++ b/lib/features/thread/presentation/thread_controller.dart @@ -26,7 +26,6 @@ import 'package:tmail_ui_user/features/email/domain/state/delete_email_permanent import 'package:tmail_ui_user/features/email/domain/state/delete_multiple_emails_permanently_state.dart'; import 'package:tmail_ui_user/features/email/domain/state/mark_as_email_read_state.dart'; import 'package:tmail_ui_user/features/email/domain/state/mark_as_email_star_state.dart'; -import 'package:tmail_ui_user/features/email/domain/state/move_to_mailbox_state.dart'; import 'package:tmail_ui_user/features/email/domain/state/store_event_attendance_status_state.dart'; import 'package:tmail_ui_user/features/email/domain/state/unsubscribe_email_state.dart'; import 'package:tmail_ui_user/features/email/presentation/action/email_ui_action.dart'; @@ -58,7 +57,6 @@ import 'package:tmail_ui_user/features/thread/domain/state/get_email_by_id_state import 'package:tmail_ui_user/features/thread/domain/state/load_more_emails_state.dart'; import 'package:tmail_ui_user/features/thread/domain/state/mark_as_multiple_email_read_state.dart'; import 'package:tmail_ui_user/features/thread/domain/state/mark_as_star_multiple_email_state.dart'; -import 'package:tmail_ui_user/features/thread/domain/state/move_multiple_email_to_mailbox_state.dart'; import 'package:tmail_ui_user/features/thread/domain/state/refresh_all_email_state.dart'; import 'package:tmail_ui_user/features/thread/domain/state/refresh_changes_all_email_state.dart'; import 'package:tmail_ui_user/features/thread/domain/state/search_email_state.dart'; @@ -347,8 +345,6 @@ class ThreadController extends BaseController with EmailActionController { viewState.map((success) { if (success is MarkAsEmailReadSuccess) { _refreshEmailChanges(currentEmailState: success.currentEmailState); - } else if (success is MoveToMailboxSuccess) { - _refreshEmailChanges(currentEmailState: success.currentEmailState); } else if (success is MarkAsStarEmailSuccess) { _refreshEmailChanges(currentEmailState: success.currentEmailState); } else if (success is DeleteEmailPermanentlySuccess) { @@ -365,10 +361,6 @@ class ThreadController extends BaseController with EmailActionController { _refreshEmailChanges(currentEmailState: success.currentEmailState); } else if (success is MarkAsMailboxReadHasSomeEmailFailure) { _refreshEmailChanges(currentEmailState: success.currentEmailState); - } else if (success is MoveMultipleEmailToMailboxAllSuccess) { - _refreshEmailChanges(currentEmailState: success.currentEmailState); - } else if (success is MoveMultipleEmailToMailboxHasSomeEmailFailure) { - _refreshEmailChanges(currentEmailState: success.currentEmailState); } else if (success is DeleteMultipleEmailsPermanentlyAllSuccess) { _refreshEmailChanges(currentEmailState: success.currentEmailState); } else if (success is DeleteMultipleEmailsPermanentlyHasSomeEmailFailure) {