deleteAccount method

Future<void> deleteAccount()

Deletes myUser's account.

Implementation

Future<void> deleteAccount() async {
  try {
    await _myUserService?.deleteMyUser();
    router.go(Routes.auth);
    router.tab = HomeTab.chats;
  } catch (_) {
    MessagePopup.error('err_data_transfer'.l10n);
    rethrow;
  }
}