-
Notifications
You must be signed in to change notification settings - Fork 41
fix: handle 2fa on RegisterDeviceScreen [WPB-16573] #3934
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
fix: handle 2fa on RegisterDeviceScreen [WPB-16573] #3934
Conversation
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release/candidate #3934 +/- ##
=====================================================
+ Coverage 45.77% 45.95% +0.18%
=====================================================
Files 492 492
Lines 17105 17150 +45
Branches 2847 2857 +10
=====================================================
+ Hits 7829 7882 +53
+ Misses 8483 8471 -12
- Partials 793 797 +4
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Built wire-android-staging-compat-pr-3934.apk is available for download |
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
RegisterDeviceScreen
, which is kind of a fallback flow when the device hasn't been registered successfully during account creation or login, has been missing a logic of handling 2FA codes when registering a client so in that case user hasn't been able to register device properly resulting in not being able to use the app properly.Solutions
Implemented handling 2FA code also on that screen, similarly to the way it's handled during the login - first the code that is persisted from the last login is used and if that returns
Invalid2FA
then new code is requested and the user needs to enter it to complete the registration flow.Testing
Test Coverage (Optional)
How to Test
It's hard to reproduce manually as it can happen for instance when login is completed but device registration request that's executed right after it fails because of a crash for instance.
Attachments (Optional)
register_client_with_2fa.mp4
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.