Commit 88273bc
Fix Bot
Fix: updateDonationCard(isFreedom) now called last in onFreedomPurchaseStateChanged
Root cause of the previous fix not working: _applyTrialState() internally
calls updateDonationCard() with NO argument (line ~5024), which re-reads
Bridge.isFreedomPurchased() from native. Since onFreedomPurchaseStateChanged
called updateDonationCard(isFreedom) BEFORE _applyTrialState(), the correct
override was immediately clobbered by _applyTrialState's internal stale/
racy Bridge read - so the UI kept showing the Pro-only state.
Fix: move the updateDonationCard(isFreedom) call to the very end of
onFreedomPurchaseStateChanged, after _applyTrialState/_stopTrialTimer/
fetchFreedomFirebaseKeys have all run, so it always has the last word.1 parent 0d0c1a2 commit 88273bc
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6587 | 6587 | | |
6588 | 6588 | | |
6589 | 6589 | | |
6590 | | - | |
6591 | 6590 | | |
6592 | 6591 | | |
6593 | 6592 | | |
| |||
6610 | 6609 | | |
6611 | 6610 | | |
6612 | 6611 | | |
| 6612 | + | |
| 6613 | + | |
| 6614 | + | |
| 6615 | + | |
6613 | 6616 | | |
6614 | 6617 | | |
6615 | 6618 | | |
| |||
0 commit comments