TF-421 Support delete permanently selection email in mailbox Draft
This commit is contained in:
@@ -2,6 +2,14 @@ import 'package:core/core.dart';
|
||||
import 'package:tmail_ui_user/features/base/state/ui_action_state.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/state.dart' as jmap;
|
||||
|
||||
class StartDeleteEmailPermanently extends UIState {
|
||||
|
||||
StartDeleteEmailPermanently();
|
||||
|
||||
@override
|
||||
List<Object?> get props => [];
|
||||
}
|
||||
|
||||
class DeleteEmailPermanentlySuccess extends UIActionState {
|
||||
|
||||
DeleteEmailPermanentlySuccess({
|
||||
|
||||
@@ -14,6 +14,8 @@ class DeleteEmailPermanentlyInteractor {
|
||||
|
||||
Stream<Either<Failure, Success>> execute(AccountId accountId, EmailId emailId) async* {
|
||||
try {
|
||||
yield Right<Failure, Success>(StartDeleteEmailPermanently());
|
||||
|
||||
final listState = await Future.wait([
|
||||
_mailboxRepository.getMailboxState(),
|
||||
_emailRepository.getEmailState(),
|
||||
|
||||
Reference in New Issue
Block a user