mirror of https://github.com/vector-im/riot-web
Correctly bail out on unknown address
parent
6c263c1c89
commit
9020a7515c
|
@ -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 New Issue