operator precedence

verto
David Baker 2015-08-05 17:59:04 +01:00
parent 6fc0498a57
commit d4d83f644a
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ function findOrMakeVertoRoom() {
for (var i = 0; i < Object.keys(allRooms).length; ++i) { for (var i = 0; i < Object.keys(allRooms).length; ++i) {
var r = allRooms[i]; var r = allRooms[i];
var membs = r.getJoinedMembers(); var membs = r.getJoinedMembers();
if (membs.length == 2 && membs[0].userId == VERTO_USERID || membs[0].userId == VERTO_USERID) { if (membs.length == 2 && (membs[0].userId == VERTO_USERID || membs[0].userId == VERTO_USERID)) {
defer.resolve(r); defer.resolve(r);
return defer.promise; return defer.promise;
} }