-
Notifications
You must be signed in to change notification settings - Fork 22
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
TW-1766: fix 500,404 error in POST request when login #1946
Conversation
This PR has been deployed to https://linagora.github.io/twake-on-matrix/1946 |
Tested on android, chrome, edge, firefox. LGTM |
For this ticket, please note the cases we use to test
Please add more cases, we should maintain these test case to verify problem of backup. |
case 1: Screen.Recording.2024-07-12.at.11.33.59.mov |
case 2: Screen.Recording.2024-07-12.at.11.46.24.mov |
case 3: import backup key from mobile Screen.Recording.2024-07-12.at.11.58.52.mov |
f52b164
to
304439a
Compare
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.
Tested again on android and chrome. Works fine
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
Ticket
Related issue
#1766
Root cause
If this is a bug, please provide a brief description of the root cause of the issue
We create the bootstrap dialog at the wrong time, so the state of bootstrap dialog always be
newSSSSKey
, that means, it will call to POST request to upload new key no matter what even when you have got the recovery key success before in tom server.Solution
Outline the implemented solution, detailing the changes made and how they address the issue
The solution is direct. We move the creating bootstrap dialog after we have loaded successfully the roomData and accountData from homeserver. This will make sure that the bootstrap state is correct and will not call to upload recoveryKey everytime we log in.
Impact description
If this is not a bug, please explain how the changes affect the project
Can decrypt message with new account now.
Test recommendations
Recommendations for how to test this, or anything else you are worried about?
Pre-merge
Does anything else need to be done before merging?
no.
Resolved
Attach screenshots or videos demonstrating the changes
Screen.Recording.2024-07-11.at.16.06.51.mov
RPReplay_Final1720689551.MP4