TF-1311 Add capability of Team-Mailbox for GetMailboxMethod

This commit is contained in:
dab246
2023-02-08 15:51:49 +07:00
committed by Dat Vu
parent b2af558790
commit 9a46f7f865
9 changed files with 23 additions and 19 deletions
@@ -158,14 +158,14 @@ class DestinationPickerController extends BaseMailboxController {
}
void getAllMailboxAction() {
if (accountId != null) {
if (accountId != null && _session != null) {
consumeState(_getAllMailboxInteractor.execute(_session!, accountId!));
}
}
void _refreshMailboxChanges(jmap.State currentMailboxState) {
if (accountId != null) {
consumeState(_refreshAllMailboxInteractor.execute(accountId!, currentMailboxState));
if (accountId != null && _session != null) {
consumeState(_refreshAllMailboxInteractor.execute(_session!, accountId!, currentMailboxState));
}
}