1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-10 09:22:25 +03:00

Merge pull request #336 from matrix-org/dbkr/add_email_fail_if_in_use

Use HS proxy API for requestToken on adding email
This commit is contained in:
David Baker
2016-07-20 14:05:58 +01:00
committed by GitHub
2 changed files with 6 additions and 3 deletions

View File

@@ -214,9 +214,10 @@ module.exports = React.createClass({
onFinished: this.onEmailDialogFinished,
});
}, (err) => {
this.setState({email_add_pending: false});
Modal.createDialog(ErrorDialog, {
title: "Unable to add email address",
description: err.toString()
description: err.message
});
});
ReactDOM.findDOMNode(this.refs.add_threepid_input).blur();