diff --git a/www/common/onlyoffice/inner.js b/www/common/onlyoffice/inner.js index 8e43e42b1..64dbf857f 100644 --- a/www/common/onlyoffice/inner.js +++ b/www/common/onlyoffice/inner.js @@ -1150,6 +1150,7 @@ define([ APP.realtime.onSettle(function () { APP.getImageURL(name, function(url) { debug("CRYPTPAD success add " + name); + common.setPadAttribute('atime', +new Date(), null, data.href); APP.AddImageSuccessCallback({ name: name, url: url diff --git a/www/common/sframe-app-framework.js b/www/common/sframe-app-framework.js index 08509dba7..112750a55 100644 --- a/www/common/sframe-app-framework.js +++ b/www/common/sframe-app-framework.js @@ -538,6 +538,7 @@ define([ } if (!mediaTagEmbedder) { console.log('mediaTagEmbedder missing'); return; } if (data.type !== 'file') { console.log('unhandled embed type ' + data.type); return; } + common.setPadAttribute('atime', +new Date(), null, data.href); var privateDat = cpNfInner.metadataMgr.getPrivateData(); var origin = privateDat.fileHost || privateDat.origin; var src = data.src = data.src.slice(0,1) === '/' ? origin + data.src : data.src; diff --git a/www/poll/inner.js b/www/poll/inner.js index 66b3091ed..0dd4409ce 100644 --- a/www/poll/inner.js +++ b/www/poll/inner.js @@ -1205,6 +1205,7 @@ define([ }; common.openFilePicker(pickerCfg, function (data) { if (data.type === 'file' && APP.editor) { + common.setPadAttribute('atime', +new Date(), null, data.href); var mt = ''; APP.editor.replaceSelection(mt); return; diff --git a/www/secureiframe/inner.js b/www/secureiframe/inner.js index 1aa94d9cd..1d3132b37 100644 --- a/www/secureiframe/inner.js +++ b/www/secureiframe/inner.js @@ -114,6 +114,7 @@ define([ var key = Hash.encodeBase64(secret.keys.cryptKey); sframeChan.event("EV_SECURE_ACTION", { type: parsed.type, + href: data.url, src: src, name: data.name, key: key diff --git a/www/secureiframe/main.js b/www/secureiframe/main.js index 330356135..eca166592 100644 --- a/www/secureiframe/main.js +++ b/www/secureiframe/main.js @@ -144,15 +144,6 @@ define([ config.onFileUpload(sframeChan, data, cb); }); - sframeChan.on('Q_GET_FILES_LIST', function (types, cb) { - Cryptpad.getSecureFilesList(types, function (err, data) { - cb({ - error: err, - data: data - }); - }); - }); - sframeChan.on('EV_SECURE_IFRAME_CLOSE', function () { config.onClose(); });