Closed sherlockvn closed 4 months ago
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 3: import backup key from mobile
https://github.com/user-attachments/assets/bff3396b-569a-4abd-a28d-61efabcb98fb
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
https://github.com/linagora/twake-on-matrix/assets/43041967/9bde5adc-7433-431d-b508-c0776258fa99
https://github.com/linagora/twake-on-matrix/assets/43041967/76f8ea95-a6fb-44d6-b0e6-b60e3e51a2e5