TF-2078 Hide mailbox loading bar when change state email
(cherry picked from commit 50fa29b2cd403dd3618cf6723e1a70e00c1e7a20)
This commit is contained in:
@@ -2,6 +2,8 @@ import 'package:core/core.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/state.dart';
|
||||
import 'package:model/mailbox/presentation_mailbox.dart';
|
||||
|
||||
class GetAllMailboxLoading extends LoadingState {}
|
||||
|
||||
class GetAllMailboxSuccess extends UIState {
|
||||
final List<PresentationMailbox> mailboxList;
|
||||
final State? currentMailboxState;
|
||||
|
||||
@@ -2,7 +2,7 @@ import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:model/mailbox/presentation_mailbox.dart';
|
||||
|
||||
class LoadingSearchMailbox extends UIState {}
|
||||
class LoadingSearchMailbox extends LoadingState {}
|
||||
|
||||
class SearchMailboxSuccess extends UIState {
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ class GetAllMailboxInteractor {
|
||||
|
||||
Stream<Either<Failure, Success>> execute(Session session, AccountId accountId, {Properties? properties}) async* {
|
||||
try {
|
||||
yield Right<Failure, Success>(LoadingState());
|
||||
yield Right<Failure, Success>(GetAllMailboxLoading());
|
||||
|
||||
yield* _mailboxRepository
|
||||
.getAllMailbox(
|
||||
|
||||
Reference in New Issue
Block a user