Correctly bail out on unknown address
This commit is contained in:
parent
6c263c1c89
commit
9020a7515c
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue