Skip to content

Commit 26fa9bd

Browse files
authored
Merge pull request #91 from code-payments/fix/fetch-trx-delta-post-give-grab
fix(home): fetch transaction delta after give/grabs
2 parents 725d2e6 + b6bd0ca commit 26fa9bd

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

api/src/main/java/com/getcode/network/client/Client_Transaction.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ suspend fun Client.receiveRemoteSuspend(giftCard: GiftCardAccount): KinAmount =
195195
)
196196

197197
balanceController.fetchBalanceSuspend()
198+
transactionRepository.fetchPaymentHistoryDelta(organizer.ownerKeyPair)
199+
.ignoreElement()
200+
.subscribe()
198201

199202
return@withContext kinAmount
200203
}

app/src/main/java/com/getcode/view/main/home/HomeViewModel.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ class HomeViewModel @Inject constructor(
295295
Completable.concatArray(
296296
balanceController.fetchBalance(),
297297
client.fetchLimits(isForce = true),
298+
client.fetchPaymentHistoryDelta(owner).ignoreElement()
298299
)
299300
}
300301
.subscribe({
@@ -818,6 +819,7 @@ class HomeViewModel @Inject constructor(
818819
Completable.concatArray(
819820
balanceController.fetchBalance(),
820821
client.fetchLimits(isForce = true),
822+
client.fetchPaymentHistoryDelta(organizer.ownerKeyPair).ignoreElement()
821823
)
822824
}
823825
.subscribe({ }, {

0 commit comments

Comments
 (0)