diff --git a/lib/features/email/presentation/controller/single_email_controller.dart b/lib/features/email/presentation/controller/single_email_controller.dart index 572404de3d..6ca5259b36 100644 --- a/lib/features/email/presentation/controller/single_email_controller.dart +++ b/lib/features/email/presentation/controller/single_email_controller.dart @@ -1724,9 +1724,10 @@ class SingleEmailController extends BaseController with AppLoaderMixin { if (_acceptCalendarEventInteractor == null || _displayingEventBlobId == null || mailboxDashBoardController.accountId.value == null + || mailboxDashBoardController.sessionCurrent == null || mailboxDashBoardController.sessionCurrent - ?.validateCalendarEventCapability(mailboxDashBoardController.accountId.value!) - .isAvailable == true + !.validateCalendarEventCapability(mailboxDashBoardController.accountId.value!) + .isAvailable == false ) { consumeState(Stream.value(Left(CalendarEventAcceptFailure()))); } else { @@ -1743,8 +1744,9 @@ class SingleEmailController extends BaseController with AppLoaderMixin { if (_rejectCalendarEventInteractor == null || _displayingEventBlobId == null || mailboxDashBoardController.accountId.value == null + || mailboxDashBoardController.sessionCurrent == null || mailboxDashBoardController.sessionCurrent - ?.validateCalendarEventCapability(mailboxDashBoardController.accountId.value!) + !.validateCalendarEventCapability(mailboxDashBoardController.accountId.value!) .isAvailable == true ) { consumeState(Stream.value(Left(CalendarEventRejectFailure()))); @@ -1762,9 +1764,10 @@ class SingleEmailController extends BaseController with AppLoaderMixin { if (_maybeCalendarEventInteractor == null || _displayingEventBlobId == null || mailboxDashBoardController.accountId.value == null + || mailboxDashBoardController.sessionCurrent == null || mailboxDashBoardController.sessionCurrent - ?.validateCalendarEventCapability(mailboxDashBoardController.accountId.value!) - .isAvailable == true + !.validateCalendarEventCapability(mailboxDashBoardController.accountId.value!) + .isAvailable == false ) { consumeState(Stream.value(Left(CalendarEventMaybeFailure()))); } else {