1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-20 16:22:28 +03:00

Fix starting a chat by email address

Regression introduced whilst refactoring for groups support.
This commit is contained in:
David Baker
2017-09-13 17:37:43 +01:00
parent 081a900524
commit 34134f0d43

View File

@@ -127,7 +127,7 @@ function _onRoomInviteFinished(roomId, shouldInvite, addrs) {
} }
function _isDmChat(addrTexts) { function _isDmChat(addrTexts) {
if (addrTexts.length === 1 && getAddressType(addrTexts[0])) { if (addrTexts.length === 1 && getAddressType(addrTexts[0]) === 'mx') {
return true; return true;
} else { } else {
return false; return false;