commit 2eb25f7c2392174c97816efa868ba0413cce3750 parent 92530f46db833463515de091eb804f7172c891da Author: Marc Stibane <marc@taler.net> Date: Sat, 14 Dec 2024 15:04:11 +0100 isInternal #9332 Diffstat:
| M | TalerWallet1/Backend/WalletCore.swift | | | 11 | ++++++++++- |
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/TalerWallet1/Backend/WalletCore.swift b/TalerWallet1/Backend/WalletCore.swift @@ -76,6 +76,8 @@ class WalletCore: QuickjsMessageHandler { let type: String let id: String? let reservePub: String? + let isInternal: Bool? + let hintTransactionId: String? let event: [String: AnyCodable]? } @@ -324,7 +326,14 @@ extension WalletCore { try handlePendingProcessed(payload) case Notification.Name.BalanceChange.rawValue: symLog.log(message) - postNotification(.BalanceChange) + if !(payload.isInternal ?? false) { // don't re-post internals + if let txID = payload.hintTransactionId { + if txID.contains("txn:refresh:") { + break + } + } + postNotification(.BalanceChange) + } case Notification.Name.BankAccountChange.rawValue: symLog.log(message) postNotification(.BankAccountChange)