Better feedback in invite dialog

Show feedback if you enter a valid but unknown email address
or mxid

Fixes https://github.com/vector-im/riot-web/issues/2933
This commit is contained in:
David Baker 2017-01-18 15:21:50 +00:00
parent fcb1d7a664
commit de621902fc
4 changed files with 26 additions and 7 deletions

View file

@ -71,6 +71,8 @@ module.exports = React.createClass({
imgUrl = "img/avatar-error.svg";
}
// Removing networks for now as they're not really supported
/*
var network;
if (this.props.networkUrl !== "") {
network = (
@ -79,6 +81,7 @@ module.exports = React.createClass({
</div>
);
}
*/
var info;
var error = false;
@ -145,7 +148,6 @@ module.exports = React.createClass({
return (
<div className={classes}>
{ network }
<div className="mx_AddressTile_avatar">
<BaseAvatar width={25} height={25} name={name} title={name} url={imgUrl} />
</div>