Log in here to report bugs or suggest features. Please enter your phone number in the international format and we will send a confirmation message to your account via Telegram.
We've just sent you a message.
Please confirm access via Telegram
It's possible to rewrite the expiration date of Telegram Premium subscription. Race condition with payment transactions.
Many premium subscriptions like Spotify Premium, YouTube premium and so on are polite. They give a time to fix payment details and give you a few retries for payments. They don't stop immediately access to features and it saves from state desync between payments aggregators.
This check already exists, but it doesn't pay attention to the status of already activated subscriptions. In the App Store it's possible to have an expired-like subscription and active at the same time.
It looks like the server stores only one active instance of subscription per user. And there is only one "expired at" field. If the races between platforms are difficult to be fixed, the solution with many "expired at" fields and sorting for the user's UI will be nicer than losing premium at all.
For already broken accounts it looks fine to add the "issues resolving" functionality to "restore purchahes" button instead of some kind of migrations in DB. I mean restore subscription by searching for gifts and transactions in other DB nodes.
I expect more issues with the same behaviors from other platforms like Google Play.
From the database perspective, you can investigate the issue by looking at my account. I'm one of the affected users.
Telegram iOS 9.3.2 (24887), iPhone 13 Pro, 16.2