From 8ff4e2fd8e36aedb2beabfe483f3d5ec2dd1b1d4 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 4 Sep 2019 17:18:30 +0200 Subject: [PATCH] Test all shared folders with getDeletedPads because of editable metadata --- www/common/outer/async-store.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/www/common/outer/async-store.js b/www/common/outer/async-store.js index b4425a8ac..0b4aa49f4 100644 --- a/www/common/outer/async-store.js +++ b/www/common/outer/async-store.js @@ -1793,13 +1793,18 @@ define([ // the server. nThen(function (waitFor) { var edPublic = store.proxy.edPublic; - var checkExpired = Object.keys(shared).filter(function (fId) { + /*var checkExpired = Object.keys(shared).filter(function (fId) { var d = shared[fId]; return (Array.isArray(d.owners) && d.owners.length && (!edPublic || d.owners.indexOf(edPublic) === -1)) || (d.expire && d.expire < (+new Date())); }).map(function (fId) { return shared[fId].channel; + });*/ + // XXX test: we probably shouldn't filter shared folder anymore here because + // the owner or the expiration time can change, so they can all be deleted + var checkExpired = Object.keys(shared).map(function (fId) { + return shared[fId].channel; }); Store.getDeletedPads(null, {list: checkExpired}, waitFor(function (chans) { if (chans && chans.error) { return void console.error(chans.error); }