From e76a62c2a587bdef797d6db9fbf00e84da47d7f2 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 2 Sep 2019 17:45:55 +0200 Subject: [PATCH] Filter out pending_owners from the 'add owners' column --- www/common/common-ui-elements.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 4f7373a7f..bc358cfcf 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -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]; } });