Delete team

This commit is contained in:
yflory
2019-09-27 18:04:48 +02:00
parent 44edbf8b39
commit 3fb0cc38ec
3 changed files with 120 additions and 6 deletions

View File

@@ -827,7 +827,7 @@ define([
// Don't push duplicates
if (result.indexOf(data.channel) !== -1) { return; }
// Return owned pads
if (_ownedByMe(Env, data.owners)) {
if (_ownedByMe(Env, data.owners) && data.owners.length === 1) {
result.push(data.channel);
}
};