Filter out pending_owners from the 'add owners' column

pull/1/head
yflory 5 years ago
parent d6b6b8f11f
commit e76a62c2a5

@ -226,7 +226,8 @@ define([
var drawAdd = function () {
var _friends = JSON.parse(JSON.stringify(friends));
Object.keys(_friends).forEach(function (curve) {
if (owners.indexOf(_friends[curve].edPublic) !== -1) {
if (owners.indexOf(_friends[curve].edPublic) !== -1 ||
pending_owners.indexOf(_friends[curve].edPublic) !== -1) {
delete _friends[curve];
}
});

Loading…
Cancel
Save