diff options
Diffstat (limited to 'android')
| -rw-r--r-- | android/app/src/main/kotlin/net/mullvad/mullvadvpn/repository/AccountRepository.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/repository/AccountRepository.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/repository/AccountRepository.kt index 1d2a9ca818..d1f395d387 100644 --- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/repository/AccountRepository.kt +++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/repository/AccountRepository.kt @@ -64,14 +64,14 @@ class AccountRepository( withContext(dispatcher) { val deferred = async { accountCreationEvents.first() } messageHandler.trySendRequest(Request.CreateAccount) - deferred.await() + deferred.await().also { fetchAccountHistory() } } suspend fun login(accountToken: String): LoginResult = withContext(Dispatchers.IO) { val deferred = async { loginEvents.first() } messageHandler.trySendRequest(Request.Login(accountToken)) - deferred.await() + deferred.await().also { fetchAccountHistory() } } fun logout() { |
