tinode / ios

Tinodios: Tinode Messaging Client for iOS
Apache License 2.0
245 stars 109 forks source link

Account deletion not working #157

Closed aforge closed 4 years ago

aforge commented 4 years ago

When the user attempts to delete an account from the Tinodios, the application returns "Action failed: malformed (400)".

Steps to reproduce the behavior:

  1. 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.
  2. Start a Tinodios client and log in as alice with password alice123.
  3. Go to 'Profile -> Account & Security'.
  4. Click on 'Delete account' and confirm the action.
  5. See error

Expected behavior The account should be deleted cleanly from both the server and the client.

Additional context

  1. Tindroid demonstrates the correct behavior of the account deletion feature and can be used as a reference.
  2. Tinodios is missing the implementation of the Storage.deleteAccount() which is supposed to purge the account data from the client's local storage.
aforge commented 4 years ago

Fixed https://github.com/tinode/ios/pull/160.