mirror of
https://github.com/RSSNext/Folo.git
synced 2026-10-17 05:08:13 +08:00
fix(mobile): let free users open the lists, actions and feeds settings
With payments enabled, tapping Lists, Actions or Feeds in settings sent Free users to the plan screen instead, although the Free plan includes a list and an action rule, as that plan screen itself says, and desktop opens these pages for everyone. The server enforces the limits and the app already shows the upgrade prompt when one is hit. Only the legacy trial role is still sent to the plans. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -263,11 +263,9 @@ const NavigationLinkGroup: FC<{
|
||||
}
|
||||
testID={link.testID}
|
||||
onPress={() => {
|
||||
if (
|
||||
link.trialNotAllowed &&
|
||||
(role === UserRole.Free || role === UserRole.Trial) &&
|
||||
getIsPaymentEnabled()
|
||||
) {
|
||||
// Free plans include lists and actions up to a limit, which the server enforces
|
||||
// with an upgrade prompt; only the legacy trial role has none of them
|
||||
if (link.trialNotAllowed && role === UserRole.Trial && getIsPaymentEnabled()) {
|
||||
navigation.presentControllerView(PlanScreen)
|
||||
} else {
|
||||
link.onPress({ navigation })
|
||||
|
||||
Reference in New Issue
Block a user