mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-08 07:28:26 +00:00
Correctly bail out on unknown address
This commit is contained in:
@@ -405,6 +405,8 @@ module.exports = React.createClass({
|
|||||||
isKnown: false,
|
isKnown: false,
|
||||||
};
|
};
|
||||||
if (addrType == null) {
|
if (addrType == null) {
|
||||||
|
this.setState({ error: true });
|
||||||
|
return null;
|
||||||
} else if (addrType == 'mx') {
|
} else if (addrType == 'mx') {
|
||||||
const user = MatrixClientPeg.get().getUser(addrObj.address);
|
const user = MatrixClientPeg.get().getUser(addrObj.address);
|
||||||
if (user) {
|
if (user) {
|
||||||
|
|||||||
Reference in New Issue
Block a user