Merge pull request #1386 from matrix-org/dbkr/fix_email_dm

Fix starting a chat by email address
This commit is contained in:
David Baker 2017-09-13 18:06:31 +01:00 committed by GitHub
commit db31033089

View file

@ -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;