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
@@ -34,7 +34,7 @@ class MailboxCacheDataSourceImpl extends MailboxDataSource {
}
@override
Future<MailboxChangeResponse> getChanges(AccountId accountId, State sinceState) {
Future<MailboxChangeResponse> getChanges(Session session, AccountId accountId, State sinceState) {
throw UnimplementedError();
}
@@ -40,9 +40,9 @@ class MailboxDataSourceImpl extends MailboxDataSource {
}
@override
Future<MailboxChangeResponse> getChanges(AccountId accountId, State sinceState) {
Future<MailboxChangeResponse> getChanges(Session session, AccountId accountId, State sinceState) {
return Future.sync(() async {
return await mailboxAPI.getChanges(accountId, sinceState);
return await mailboxAPI.getChanges(session, accountId, sinceState);
}).catchError((error) {
_exceptionThrower.throwException(error);
});