-
Notifications
You must be signed in to change notification settings - Fork 754
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
Handle case when device cannot be verified #6475
Conversation
// secure backup is setup | ||
val hasTargetDeviceToVerifyAgainst = session | ||
.cryptoService() | ||
.getUserDevices(session.myUserId) |
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.
Are we sure that all the user devices are known by the SDK at this point?
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.
there is a force download call few lines before. But maybe i should switch to crypto context to avoid outof sync db?
} | ||
} | ||
} | ||
} else if (!isMine) { |
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.
We are already in a if (isMine)
block, so this is strange. Dead code?
Also line 197 could be simplified. No need to test if (!isMine)
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.
yeah strange I used the editor split condition and it did that, will review the logic
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.
Not sure it has been changed in this PR but the "Reset everything" action sounds destructive, so I'd expect to show it in red, wdyt?
In this case you have no recovery method, nor other device to verify against. So reset is your only choice, there is nothing to destruct and that's what you hsould do. |
9be5f91
to
ed46ce6
Compare
ed46ce6
to
ac7b47b
Compare
SonarCloud Quality Gate failed. |
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.
LGTM
Type of change
Content
Fixes #6466
Motivation and context
When there is no way to verify a new device, prompt and propose to reset verifications keys.
Screenshots / GIFs
This can be performed from settings also
A click on the popup will open the 4S setup bottomsheet
Tests
Tested devices
Checklist