taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit a6701681236a61c5e09e6b8369b7e114ea0ae8e8
parent 5a0f216537b9020dcd685c47210da014402b5c27
Author: Marc Stibane <marc@taler.net>
Date:   Tue, 24 Jun 2025 07:17:54 +0200

add time to notification

Diffstat:
MTalerWallet1/Backend/WalletCore.swift | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/TalerWallet1/Backend/WalletCore.swift b/TalerWallet1/Backend/WalletCore.swift @@ -325,14 +325,15 @@ extension WalletCore { case Notification.Name.PendingOperationProcessed.rawValue: try handlePendingProcessed(payload) case Notification.Name.BalanceChange.rawValue: + let now = Date() symLog.log(message) if !(payload.isInternal ?? false) { // don't re-post internals if let txID = payload.hintTransactionId { if txID.contains("txn:refresh:") { - break + break // don't re-post refresh } } - postNotification(.BalanceChange) + postNotification(.BalanceChange, userInfo: [NOTIFICATIONTIME: now]) } case Notification.Name.BankAccountChange.rawValue: symLog.log(message)