From 17055e8e6a1452123150397d4ef3512cdd022c1b Mon Sep 17 00:00:00 2001 From: brave-builds <45370463+brave-builds@users.noreply.github.com> Date: Mon, 23 Oct 2023 17:50:03 -0400 Subject: [PATCH] Fixes [ads] next payment token redemption date is not persisted across browser launches (uplift to 1.59.x) (#20611) Uplift of #20609 (squashed) to release --- .../utility/redeem_payment_tokens/redeem_payment_tokens.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/components/brave_ads/core/internal/account/utility/redeem_payment_tokens/redeem_payment_tokens.cc b/components/brave_ads/core/internal/account/utility/redeem_payment_tokens/redeem_payment_tokens.cc index 65046ac5c554..90f419c3d657 100644 --- a/components/brave_ads/core/internal/account/utility/redeem_payment_tokens/redeem_payment_tokens.cc +++ b/components/brave_ads/core/internal/account/utility/redeem_payment_tokens/redeem_payment_tokens.cc @@ -46,6 +46,7 @@ void RedeemPaymentTokens::MaybeRedeemAfterDelay(const WalletInfo& wallet) { const base::Time redeem_at = timer_.Start( FROM_HERE, CalculateDelayBeforeRedeemingTokens(), base::BindOnce(&RedeemPaymentTokens::Redeem, base::Unretained(this))); + SetNextTokenRedemptionAt(redeem_at); BLOG(1, "Redeem payment tokens " << FriendlyDateAndTime(redeem_at)); }