mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-18 14:44:58 +08:00
Correctly bail out on unknown address
This commit is contained in:
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
Block a user