Merge branch 'staging' of github.com:xwiki-labs/cryptpad into staging
This commit is contained in:
commit
d7906f9132
@ -1792,14 +1792,19 @@ define([
|
|||||||
// If we don't check now, Listmap will create an empty proxy if it no longer exists on
|
// If we don't check now, Listmap will create an empty proxy if it no longer exists on
|
||||||
// the server.
|
// the server.
|
||||||
nThen(function (waitFor) {
|
nThen(function (waitFor) {
|
||||||
var edPublic = store.proxy.edPublic;
|
//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];
|
var d = shared[fId];
|
||||||
return (Array.isArray(d.owners) && d.owners.length &&
|
return (Array.isArray(d.owners) && d.owners.length &&
|
||||||
(!edPublic || d.owners.indexOf(edPublic) === -1))
|
(!edPublic || d.owners.indexOf(edPublic) === -1))
|
||||||
|| (d.expire && d.expire < (+new Date()));
|
|| (d.expire && d.expire < (+new Date()));
|
||||||
}).map(function (fId) {
|
}).map(function (fId) {
|
||||||
return shared[fId].channel;
|
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) {
|
Store.getDeletedPads(null, {list: checkExpired}, waitFor(function (chans) {
|
||||||
if (chans && chans.error) { return void console.error(chans.error); }
|
if (chans && chans.error) { return void console.error(chans.error); }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user