Correctly bail out on unknown address

This commit is contained in:
David Baker 2017-01-25 14:50:00 +00:00
parent 6c263c1c89
commit 9020a7515c

View File

@ -405,6 +405,8 @@ module.exports = React.createClass({
isKnown: false,
};
if (addrType == null) {
this.setState({ error: true });
return null;
} else if (addrType == 'mx') {
const user = MatrixClientPeg.get().getUser(addrObj.address);
if (user) {