Skip to content

Commit

Permalink
fixup! TF-2859 Add language when reply calendar invitation
Browse files Browse the repository at this point in the history
  • Loading branch information
tddang-linagora committed May 20, 2024
1 parent 5d0de74 commit 8ff46ab
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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())));
Expand All @@ -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 {
Expand Down

0 comments on commit 8ff46ab

Please sign in to comment.