Skip to content

Commit

Permalink
Merge branch 'old-account-number-shows-up-in-account-history-for-a-br…
Browse files Browse the repository at this point in the history
…ief-droid-546'
  • Loading branch information
Pururun committed Dec 7, 2023
2 parents aed7c8d + 0beed23 commit 4003ba7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 4003ba7

Please sign in to comment.