OdyseeTeam / odysee-ios

The Odysee iOS app with wallet functionality.
MIT License
67 stars 22 forks source link

support account closure #376

Open tzarebczan opened 1 year ago

tzarebczan commented 1 year ago

This is what we should eventually make it look like but this first version can just mention the deletion process and to tell the user to take actions on uploads/channels page by swiping. Encourage sending balance to another account, and if not, send to Odysee via wallet send bHg5cNFA8bF32CF6M8J3BndyZXqzreRjHz with 0.1 LBC less than the balance.

Check claim /channel list: "You still have content and/or channels available on your account. In order to close it, you'll need to remove these manually. Please return back and take these actions before closing the account. "

No channels/claim, but has balance >1 LBC: "You still have some credits on your account. Either send these to a different account via the wallet page, or they will be returned to Odysee". > add confirmation step before deleting. Log user out, "Your account is queued for deletion and an email will follow once completed".

Future / or try some if not too much effort:

When they click the remove option, run a claim list and channel list to see if they have channels and content. I think we can have 2 ways for users to proceed - automated and manual.

Automated would require confirmation by retyping email, and would run txo spend without any parameters - make sure they understand this is final and cannot be undone. It would also wallet send the balance to Odysee (bHg5cNFA8bF32CF6M8J3BndyZXqzreRjHz with 0.1 LBC less than the balance) ). The wallet send step may require a blockchain confirmation in some cases where there's lots of content, otherwise, it may fail. If it's >10 LBC or something, maybe have them retry in a few minutes, otherwise, just allow them to proceed.

Prompt for confirmation before final account closure step by retyping email?

"You still have channels and/or content on your account. Are you sure you want to remove all of them? This process cannot be undone and is final. Your Credits balance would also be sent back to Odysee." Show button for Automated option> trigger confirmation by retyping email. run txo spend, check successful result, and then proceed to balance sending.

Below that, give option for manual process. This would follow the manual process outlined above including the balance sending

"If you want to manually remove via swiping on channels/uploads pages, click here to go back to clean up manually". > show manual button.