Skip to content

Commit

Permalink
fixup! TF-2840 calendar event reject integrate interactor to SingleEm…
Browse files Browse the repository at this point in the history
…ailController
  • Loading branch information
tddang-linagora committed May 7, 2024
1 parent 16ef40c commit 330ffb4
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1712,9 +1712,9 @@ class SingleEmailController extends BaseController with AppLoaderMixin {

void _acceptCalendarEventAction() {
if (_acceptCalendarEventInteractor == null
|| _displayingEventBlobId == null
|| mailboxDashBoardController.accountId.value == null) {
consumeState(Stream.value(Left(CalendarEventAcceptFailure())));
|| _displayingEventBlobId == null
|| mailboxDashBoardController.accountId.value == null) {
consumeState(Stream.value(Left(CalendarEventAcceptFailure())));
} else {
consumeState(_acceptCalendarEventInteractor!.execute(
mailboxDashBoardController.accountId.value!,
Expand All @@ -1724,9 +1724,9 @@ class SingleEmailController extends BaseController with AppLoaderMixin {

void _rejectCalendarEventAction() {
if (_rejectCalendarEventInteractor == null
|| _displayingEventBlobId == null
|| mailboxDashBoardController.accountId.value == null) {
consumeState(Stream.value(Left(CalendarEventRejectFailure())));
|| _displayingEventBlobId == null
|| mailboxDashBoardController.accountId.value == null) {
consumeState(Stream.value(Left(CalendarEventRejectFailure())));
} else {
consumeState(_rejectCalendarEventInteractor!.execute(
mailboxDashBoardController.accountId.value!,
Expand All @@ -1736,9 +1736,9 @@ class SingleEmailController extends BaseController with AppLoaderMixin {

void _maybeCalendarEventAction() {
if (_maybeCalendarEventInteractor == null
|| _displayingEventBlobId == null
|| mailboxDashBoardController.accountId.value == null) {
consumeState(Stream.value(Left(CalendarEventMaybeFailure())));
|| _displayingEventBlobId == null
|| mailboxDashBoardController.accountId.value == null) {
consumeState(Stream.value(Left(CalendarEventMaybeFailure())));
} else {
consumeState(_maybeCalendarEventInteractor!.execute(
mailboxDashBoardController.accountId.value!,
Expand All @@ -1757,7 +1757,7 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
appToast.showToastSuccessMessage(
currentOverlayContext!,
appLocalization.youMayAttendThisMeeting);
} else {
} else if (success is CalendarEventRejected) {
appToast.showToastSuccessMessage(
currentOverlayContext!,
appLocalization.youWillNotAttendThisMeeting);
Expand Down

0 comments on commit 330ffb4

Please sign in to comment.