Account deletion not working
aforge opened this issue · comments
When the user attempts to delete an account from the Tinodios, the application returns "Action failed: malformed (400)".
Steps to reproduce the behavior:
0. The problem can be easily reproduced in the local setup (e.g. bring up a single-instance Tinode server locally per https://github.com/tinode/chat/tree/master/docker/docker-compose#full-stack). Tinode server will be available locally at port 6060.
- Start a Tinodios client and log in as
alice
with passwordalice123
. - Go to 'Profile -> Account & Security'.
- Click on 'Delete account' and confirm the action.
- See error
Expected behavior
The account should be deleted cleanly from both the server and the client.
Additional context
- Tindroid demonstrates the correct behavior of the account deletion feature and can be used as a reference.
- Tinodios is missing the implementation of the Storage.deleteAccount() which is supposed to purge the account data from the client's local storage.