From 9020a7515cce880896d5933de0165d5c923d9553 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 25 Jan 2017 14:50:00 +0000 Subject: [PATCH] Correctly bail out on unknown address --- src/components/views/dialogs/ChatInviteDialog.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/views/dialogs/ChatInviteDialog.js b/src/components/views/dialogs/ChatInviteDialog.js index 60aa6b0c5b..babdf6d9ba 100644 --- a/src/components/views/dialogs/ChatInviteDialog.js +++ b/src/components/views/dialogs/ChatInviteDialog.js @@ -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) {