Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Different dialog for new trusted backup #2435

Merged
merged 3 commits into from
Jan 11, 2019

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Jan 11, 2019

Split the 'new recovery method' into two cases: one where the new
recovery method isn't trusted and you need to verify the device, and
another where it is and the client is using it (where it's more of
an FYI).

Also base the choice of which dialog to use on polling to see if there is a new one (because M_NOT_FOUND just means the one has gone away: there may or may not be a new version.

element-hq/element-web#8069

Split the 'new recovery method' into two cases: one where the new
recovery method isn't trusted and you need to verify the device, and
another where it is and the client is using it (where it's more of
an FYI).

element-hq/element-web#8069
@dbkr dbkr requested a review from a team January 11, 2019 13:18
@jryans jryans self-assigned this Jan 11, 2019
let haveNewVersion;
let newVersionInfo;
// if key backup is still enabled, there must be a new backup in place
if (MatrixClientPeg.get().getKeyBackupEnabled()) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If key backup is enabled here, we go to the "New Recovery Method" dialog without setting newVersionInfo to a value, but that's marked isRequired in propTypes. Should it change to not required?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, good point

@jryans jryans assigned dbkr and unassigned jryans Jan 11, 2019
Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for working on this! 😁

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants