-
Notifications
You must be signed in to change notification settings - Fork 490
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: Option to resend verification mail #1473
Conversation
The build is failing✨ Good work on this PR so far! ✨ Unfortunately, the Circle CI build is failing as of 4628a96. Here's the output:
|
The build is failing✨ Good work on this PR so far! ✨ Unfortunately, the Circle CI build is failing as of 640ffbc. Here's the output:
|
app/src/main/java/com/eventyay/organizer/core/organizer/detail/OrganizerDetailPresenter.java
Outdated
Show resolved
Hide resolved
.doOnSubscribe(disposable -> getView().showProgress(true)) | ||
.doFinally(() -> getView().showProgress(false)) | ||
.subscribe(resendMailResponse -> getView().showSnackbar("Verification Mail Resent"), | ||
throwable -> getView().showError(ErrorUtils.getMessage(throwable).toString()))); |
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.
Handle error correctly, don't just show to the user
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.
Is it okay now?
app/src/main/java/com/eventyay/organizer/core/organizer/detail/OrganizerDetailView.java
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## development #1473 +/- ##
=================================================
- Coverage 24.1% 24.08% -0.02%
Complexity 757 757
=================================================
Files 237 237
Lines 8791 8797 +6
Branches 360 360
=================================================
Hits 2119 2119
- Misses 6588 6594 +6
Partials 84 84
Continue to review full report at Codecov.
|
throwable -> getView().showError(ErrorUtils.getMessage(throwable).toString()))); | ||
throwable -> { | ||
getView().showError(ErrorUtils.getErrorDetails(throwable).toString()); | ||
Timber.e(throwable, "An exception occurred : %s", throwable.getMessage()); |
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.
Still not handling anything
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.
Can you please explain a bit about what change is required?
Fixes #1472
Checklist:
Changes:
Now, the user would have the option to trigger resending of verification mail for an unverified account.
GIF for the change: