Open yostyle opened 3 months ago
@bmarty @BillCarsonFr We need to understand why startInitializeFlow
method may be called multiple times ? If not what is the right way to fix that ?
What do you think about those following quick fixes ?
@bmarty @BillCarsonFr We need to understand why
startInitializeFlow
method may be called multiple times ? If not what is the right way to fix that ?
Hello @yostyle , I suspect that what you are seeing is a regression due to https://github.com/element-hq/element-android/pull/8786
When UIA kicks in, the state is set to ReAuth step that will then show the ReAuthFragment that then does an auto submit (calling again startInitializeFlow) https://github.com/element-hq/element-android/blob/b0158f1a93499b736a92285d8a7359a51a2d8921/vector/src/main/java/im/vector/app/features/crypto/recover/BootstrapReAuthFragment.kt#L48-L52
Steps to reproduce
case 1:
Secure Backup
section tap on "Set up on this device".https://github.com/element-hq/element-android/assets/1191674/c1927459-a64c-4f03-8701-2f3dc43148e4
case 2:
https://github.com/element-hq/element-android/assets/1191674/8914c624-80eb-40f3-a174-2af753594af2
Outcome
What did you expect?
Get a recovery key
What happened instead?
User password is asked multiple times and the app crashes.
bootstrapTask
invoked fromstartInitializeFlow
method is called multiple times :Your phone model
Pixel 8 Pro
Operating system version
Android 14
Application version and app store
Element 1.6.16
Homeserver
matrix.org
Will you send logs?
No
Are you willing to provide a PR?
No