From 34134f0d43fbe0cc186c7c302d00b305d0ae5f7c Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 13 Sep 2017 17:37:43 +0100 Subject: [PATCH] Fix starting a chat by email address Regression introduced whilst refactoring for groups support. --- src/Invite.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Invite.js b/src/Invite.js index b8e33d318a..9be3da53e4 100644 --- a/src/Invite.js +++ b/src/Invite.js @@ -127,7 +127,7 @@ function _onRoomInviteFinished(roomId, shouldInvite, addrs) { } function _isDmChat(addrTexts) { - if (addrTexts.length === 1 && getAddressType(addrTexts[0])) { + if (addrTexts.length === 1 && getAddressType(addrTexts[0]) === 'mx') { return true; } else { return false;