-
Couldn't load subscription status.
- Fork 554
feat: Add delete account feature #2115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add delete account feature #2115
Conversation
| |}]""".trimMargin().replace("'", "\"") | ||
|
|
||
| compositeDisposable += eventService.getEventsOfUser(authService.getId(), query) | ||
| .withDefaultSchedulers() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not your job. This is server's job
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought frontend also did the same. There is no endpoint to check whether an account is deletable or not, so we have to check whether there are active events attached to the account from client-side or not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So should I just proceed to delete and then when server return delete fail, I'll display the message that there are events attached so the account is not deletable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
app/src/main/java/org/fossasia/openevent/general/auth/ProfileFragment.kt
Show resolved
Hide resolved
|
Reopening as mistakenly closed |
Fixes: #2114
Screenshots for the change:
