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

Trust on decrypt #2583

Merged
merged 3 commits into from
Feb 8, 2019
Merged

Trust on decrypt #2583

merged 3 commits into from
Feb 8, 2019

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Feb 7, 2019

Add support for trust-on-decrypt (API change, recognise flag on
isKeyBackupTrusted). Catch rejection on wrong passphrase / recovery
key. Fix remembering whether we are restoring with key or passphrase.

Requires matrix-org/matrix-js-sdk#836

Add support for trust-on-decrypt (API change, recognise flag on
isKeyBackupTrusted). Catch rejection on wrong passphrase / recovery
key. Fix remembering whether we are restoring with key or passphrase.

Requires matrix-org/matrix-js-sdk#836
@dbkr dbkr requested a review from a team February 7, 2019 14:42
Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

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

generally lgtm though

@@ -185,32 +185,31 @@ export default React.createClass({
title = _t("Error");
content = _t("Unable to load backup status");
} else if (this.state.restoreError) {
title = _t("Error");
content = _t("Unable to restore backup");
if (this.state.restoreError.errcode === MatrixClientPeg.get().RESTORE_BACKUP_ERROR_BAD_KEY) {
Copy link
Member

Choose a reason for hiding this comment

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

Can we import MatrixClient from the js-sdk and use that instead? Accessing static properties on an instance variable is not fun :(

<br />
<div>{backupSigStatuses}</div>
<div>{trustedLocally}</div>
<br /><br />
Copy link
Member

Choose a reason for hiding this comment

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

imo we should be using block elements rather than breaks - breaks have me concerned for when/if someone changes their zoom level and things don't align anymore, whereas blocks would ensure the layout at least remains somewhat sane.

@dbkr dbkr merged commit abcbd46 into develop Feb 8, 2019
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