TF-3697 Open specific thread detail email
This commit is contained in:
@@ -2,7 +2,14 @@ import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:model/email/presentation_email.dart';
|
||||
|
||||
class GettingEmailsByIds extends LoadingState {}
|
||||
class GettingEmailsByIds extends LoadingState {
|
||||
GettingEmailsByIds({this.loadingIndex});
|
||||
|
||||
final int? loadingIndex;
|
||||
|
||||
@override
|
||||
List<Object?> get props => [loadingIndex];
|
||||
}
|
||||
|
||||
class GetEmailsByIdsSuccess extends UIState {
|
||||
GetEmailsByIdsSuccess(this.presentationEmails);
|
||||
|
||||
@@ -22,6 +22,7 @@ class GetEmailsByIdsInteractor {
|
||||
AccountId accountId,
|
||||
List<EmailId> emailIds, {
|
||||
Properties? properties,
|
||||
int? loadMoreIndex,
|
||||
}) async* {
|
||||
try {
|
||||
if (emailIds.length > 1 && (
|
||||
@@ -31,7 +32,7 @@ class GetEmailsByIdsInteractor {
|
||||
throw ThreadDetailOverloadException();
|
||||
}
|
||||
|
||||
yield Right(GettingEmailsByIds());
|
||||
yield Right(GettingEmailsByIds(loadingIndex: loadMoreIndex));
|
||||
final result = await _threadDetailRepository.getEmailsByIds(
|
||||
session,
|
||||
accountId,
|
||||
|
||||
Reference in New Issue
Block a user