mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-06 10:27:34 +00:00
The screens and alerts need to know whether a subscription renews, was cancelled, waits for a charge, or ended, and the client dropped every state the service sent but ended. It is now stored on the purchase: from the answer to the first credit, and from a renewal answer only when the asserted tip's coverage had ended, since while coverage runs the service repeats what it read at the last renewal (a year old for an annual plan). BadgeState gains `subscription` (the plan's months, from the latest charge credit, and the state), and fills renewsAt/willRenew from it. A changed state is announced with CEvtBadgeChanged. The column goes into the unreleased M20260925 migration. Run: 003-badge-subscriptions-ui, slice 2