Commit d4d83f64 authored by David Baker's avatar David Baker
Browse files

operator precedence

parent 6fc0498a
......@@ -159,7 +159,7 @@ function findOrMakeVertoRoom() {
for (var i = 0; i < Object.keys(allRooms).length; ++i) {
var r = allRooms[i];
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);
return defer.promise;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment