TF-2177 Fix download attachment not working on web

Signed-off-by: dab246 <tdvu@linagora.com>
(cherry picked from commit 09cbfe5245c206670aa2191c151fd8f2ea48df3a)
This commit is contained in:
dab246
2023-10-23 23:19:12 +07:00
committed by Dat H. Pham
parent 73a8919f18
commit 424ab675d5
17 changed files with 134 additions and 113 deletions
@@ -13,21 +13,21 @@ class HiveAccountDatasourceImpl extends AccountDatasource {
@override
Future<PersonalAccount> getCurrentAccount() {
return Future.sync(() async {
return await _accountCacheManager.getSelectedAccount();
return await _accountCacheManager.getCurrentAccount();
}).catchError(_exceptionThrower.throwException);
}
@override
Future<void> setCurrentAccount(PersonalAccount newCurrentAccount) {
return Future.sync(() async {
return await _accountCacheManager.setSelectedAccount(newCurrentAccount);
return await _accountCacheManager.setCurrentAccount(newCurrentAccount);
}).catchError(_exceptionThrower.throwException);
}
@override
Future<void> deleteCurrentAccount(String accountId) {
return Future.sync(() async {
return await _accountCacheManager.deleteSelectedAccount(accountId);
return await _accountCacheManager.deleteCurrentAccount(accountId);
}).catchError(_exceptionThrower.throwException);
}
}