tutao / tutanota

Tuta is an email service with a strong focus on security and privacy that lets you encrypt emails, contacts and calendar entries on all your devices.
https://tuta.com
GNU General Public License v3.0
5.93k stars 509 forks source link

Unable to upgrade from free plan on web #7218

Closed masquernya closed 1 month ago

masquernya commented 1 month ago

Bug in web app

Describe the bug If you try to upgrade from the free plan on the web app, you get a "notAvailableInApp" error.

To Reproduce Steps to reproduce the behavior:

  1. Go to the Gear icon (settings page), then click on Plan
  2. Click on the edit icon next to the "Free" label
  3. The error message "This function is not available in the mobile app." shows up, and you are not able to upgrade.

Expected behavior Clicking on the edit button brings up the upgrade wizard.

Screenshots Unfortunately, I did not take screenshots before testing a fix.

Desktop (please complete the following information):

Additional context Replacing the line at https://github.com/tutao/tutanota/commit/6d145fa67eb681c8b73487857bdc05e22df2710d#diff-df760e8a734752a9af3f1ad62a3afdff5edd6ddf07df53487cb54fff56fb713aR76 (line 76) with the following line fixes the issue:

    if (isIOSApp() && !(await locator.appStorePaymentPicker.shouldEnableAppStorePayment(getPaymentMethodType(accountingInfo)))) {