Skip to content
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

Move initial key backup to background #2416

Merged
merged 5 commits into from
Jan 9, 2019

Conversation

jryans
Copy link
Collaborator

@jryans jryans commented Jan 9, 2019

Since the initial key backup can take several minutes for some users, this moves
the upload step to the background. The create key backup flow now only marks
all sessions for backup synchronously, with the actual backup happening later.

The key backup panel in Settings gains a new row to show a summary of upload
status. Users are directed there if they wish to know if the backup is done.

In addition, some misc. linting and component tweaks are made in this area.

Fixes element-hq/element-web#7863.
Depends on matrix-org/matrix-js-sdk#820.

KeyBackupPanel depends only on its own state and its children are pure, so it
can be pure as well. This avoids some unnecessary re-renders.
This adds a summary of the keys currently waiting for backup, which may be
useful for following a large upload as it progresses.
Since the initial key backup can take several minutes for some users, this moves
the upload step to the background.  The create key backup flow now only marks
all sessions for backup synchronously, with the actual backup happening later.

The key backup panel in Settings gains a new row to show a summary of upload
status.  Users are directed there if they wish to know if the backup is done.

The text in various related dialogs has also been tweaked to fit the new flow.
@jryans jryans requested a review from a team January 9, 2019 12:12
@dbkr dbkr self-assigned this Jan 9, 2019
@dbkr dbkr removed their assignment Jan 9, 2019
@jryans jryans merged commit 365a727 into matrix-org:experimental Jan 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants