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:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user