TF-1317 Show push notification on background or terminated app

This commit is contained in:
dab246
2023-01-09 17:01:34 +07:00
committed by Dat H. Pham
parent 97583820fa
commit 7367d7e1d2
12 changed files with 292 additions and 96 deletions
@@ -15,10 +15,12 @@ class UpdateAuthenticationAccountInteractor {
try{
yield Right(UpdateAuthenticationAccountLoading());
final currentAccount = await _accountRepository.getCurrentAccount();
await _accountRepository.setCurrentAccount(currentAccount.fromAccountId(
accountId: accountId,
apiUrl: apiUrl
));
await _accountRepository.setCurrentAccount(
currentAccount.fromAccountId(
accountId: accountId,
apiUrl: apiUrl
)
);
yield Right(UpdateAuthenticationAccountSuccess());
} catch(e) {
yield Left(UpdateAuthenticationAccountFailure(e));