Improve team and account deletion for pads multiple owners

This commit is contained in:
yflory
2019-09-30 17:36:56 +02:00
parent 72ba9ab999
commit b5cce5f215
4 changed files with 85 additions and 11 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) && data.owners.length === 1) {
if (_ownedByMe(Env, data.owners)) {
result.push(data.channel);
}
};