TF-1310: Check capability of TeamMailboxes in session

This commit is contained in:
HuyNguyen
2023-01-31 22:43:25 +07:00
committed by Dat Vu
parent 33bf4002e8
commit d57bcd10dd
10 changed files with 46 additions and 19 deletions
@@ -28,7 +28,7 @@ class MailboxCacheDataSourceImpl extends MailboxDataSource {
MailboxCacheDataSourceImpl(this._mailboxCacheManager, this._exceptionThrower);
@override
Future<MailboxResponse> getAllMailbox(AccountId accountId, {Properties? properties}) {
Future<MailboxResponse> getAllMailbox(Session session, AccountId accountId, {Properties? properties}) {
throw UnimplementedError();
}
@@ -30,9 +30,9 @@ class MailboxDataSourceImpl extends MailboxDataSource {
MailboxDataSourceImpl(this.mailboxAPI, this._mailboxIsolateWorker, this._exceptionThrower);
@override
Future<MailboxResponse> getAllMailbox(AccountId accountId, {Properties? properties}) {
Future<MailboxResponse> getAllMailbox(Session session, AccountId accountId, {Properties? properties}) {
return Future.sync(() async {
return await mailboxAPI.getAllMailbox(accountId, properties: properties);
return await mailboxAPI.getAllMailbox(session, accountId, properties: properties);
}).catchError((error) {
_exceptionThrower.throwException(error);
});