element-hq / element-android

A Matrix collaboration client for Android.
https://element.io/
Apache License 2.0
3.27k stars 677 forks source link

Fix setup secure backup #8786

Closed bmarty closed 3 months ago

bmarty commented 3 months ago

Type of change

Content

This PR contains 2 fixes:

image

To reproduce, on this screen ^ click on "Reset Keys" and observe that as soon as the loading dialog is dimissed, the keys are updated on screen. Previously user had to wait at most 30s to see the update.

To reproduce the issue:

With this PR, the infinite loading wheel is not displayed, and if necessary, the ReAuthActivity is launch, to either ask the user to enter their password or login again using SSO

I have tested OK the direct flow (i.e. without entering the password) and the flow with entering the password. To test this flow you have to wait for the grace period server side to expire (not sure what the grace period duration is on matrix.org).

Motivation and context

Fix infinite loading wheel.

Screenshots / GIFs

Tests

Tested devices

Checklist