Add more undefined checks

This commit is contained in:
abalabahaha
2016-09-27 15:36:15 +09:00
parent ba0c8c45fc
commit d22ca969db
4 changed files with 2 additions and 6 deletions

View File

@@ -362,7 +362,7 @@ var Resolver = (function () {
var pmchat = _ref5;
if (pmchat.recipient.equals(resource)) {
if (pmchat.recipients.length === 1 && pmchat.recipient && pmchat.recipient.equals(resource)) {
return Promise.resolve(pmchat);
}
}