Hot fix cannot send email on cyrus server when the first open app

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-02-21 16:59:14 +07:00
committed by Dat H. Pham
parent 78dffe90b6
commit a8cc19ada2
13 changed files with 138 additions and 92 deletions
@@ -1,25 +1,20 @@
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
import 'package:tmail_ui_user/features/base/state/ui_action_state.dart';
import 'package:jmap_dart_client/jmap/core/state.dart' as jmap;
import 'package:jmap_dart_client/jmap/mail/mailbox/mailbox.dart';
class CreateDefaultMailboxLoading extends LoadingState {}
class CreateDefaultMailboxAllSuccess extends UIActionState {
CreateDefaultMailboxAllSuccess({
jmap.State? currentEmailState,
jmap.State? currentMailboxState,
}) : super(currentEmailState, currentMailboxState);
class CreateDefaultMailboxAllSuccess extends UIState {
final List<Mailbox> listMailbox;
CreateDefaultMailboxAllSuccess(this.listMailbox);
@override
List<Object?> get props => [...super.props];
List<Object?> get props => [listMailbox];
}
class CreateDefaultMailboxFailure extends FeatureFailure {
final jmap.State? currentMailboxState;
CreateDefaultMailboxFailure(this.currentMailboxState, dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [currentMailboxState, exception];
CreateDefaultMailboxFailure(dynamic exception) : super(exception: exception);
}