TF-2859 Add language when reply calendar invitation
This commit is contained in:
@@ -16,10 +16,12 @@ class AcceptCalendarEventInteractor {
|
||||
AccountId accountId,
|
||||
Set<Id> blobIds,
|
||||
EmailId emailId,
|
||||
String? language
|
||||
) async* {
|
||||
try {
|
||||
yield Right(CalendarEventAccepting());
|
||||
final result = await _calendarEventRepository.acceptEventInvitation(accountId, blobIds);
|
||||
final result = await _calendarEventRepository
|
||||
.acceptEventInvitation(accountId, blobIds, language);
|
||||
yield Right(CalendarEventAccepted(result, emailId));
|
||||
} catch (e) {
|
||||
yield Left(CalendarEventAcceptFailure(exception: e));
|
||||
|
||||
@@ -16,10 +16,12 @@ class RejectCalendarEventInteractor {
|
||||
AccountId accountId,
|
||||
Set<Id> blobIds,
|
||||
EmailId emailId,
|
||||
String? language
|
||||
) async* {
|
||||
try {
|
||||
yield Right(CalendarEventRejecting());
|
||||
final result = await _calendarEventRepository.rejectEventInvitation(accountId, blobIds);
|
||||
final result = await _calendarEventRepository
|
||||
.rejectEventInvitation(accountId, blobIds, language);
|
||||
yield Right(CalendarEventRejected(result, emailId));
|
||||
} catch (e) {
|
||||
yield Left(CalendarEventRejectFailure(exception: e));
|
||||
|
||||
@@ -16,10 +16,12 @@ class MaybeCalendarEventInteractor {
|
||||
AccountId accountId,
|
||||
Set<Id> blobIds,
|
||||
EmailId emailId,
|
||||
String? language
|
||||
) async* {
|
||||
try {
|
||||
yield Right(CalendarEventMaybeReplying());
|
||||
final result = await _calendarEventRepository.maybeEventInvitation(accountId, blobIds);
|
||||
final result = await _calendarEventRepository
|
||||
.maybeEventInvitation(accountId, blobIds, language);
|
||||
yield Right(CalendarEventMaybeSuccess(result, emailId));
|
||||
} catch (e) {
|
||||
yield Left(CalendarEventMaybeFailure(exception: e));
|
||||
|
||||
Reference in New Issue
Block a user