mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-16 03:07:04 +02:00
Merge pull request #1386 from matrix-org/dbkr/fix_email_dm
Fix starting a chat by email address
This commit is contained in:
commit
db31033089
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user