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
commit 02e2ade7d9
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();