Fix history size in the apps

pull/1/head
yflory 4 years ago
parent c5e078267e
commit 56b227260d

@ -196,7 +196,7 @@ define([
waitFor.abort(); waitFor.abort();
return void UI.warn(Messages.admin_archiveInval); return void UI.warn(Messages.admin_archiveInval);
} }
})); }), true);
}).nThen(function () { }).nThen(function () {
sFrameChan.query('Q_ADMIN_RPC', { sFrameChan.query('Q_ADMIN_RPC', {
cmd: archive ? 'ARCHIVE_DOCUMENT' : 'RESTORE_ARCHIVED_DOCUMENT', cmd: archive ? 'ARCHIVE_DOCUMENT' : 'RESTORE_ARCHIVED_DOCUMENT',

@ -91,7 +91,7 @@ define([
console.error(e); console.error(e);
} }
bytes += _bytes; bytes += _bytes;
})); }), true);
}); });
if (!owned) { return; } if (!owned) { return; }

@ -185,8 +185,9 @@ define([
}); });
}; };
funcs.getFileSize = function (channelId, cb) { funcs.getFileSize = function (channelId, cb, noCache) {
nThen(function (waitFor) { nThen(function (waitFor) {
if (channelId.length < 48 || noCache) { return; }
ctx.cache.getBlobCache(channelId, waitFor(function(err, blob) { ctx.cache.getBlobCache(channelId, waitFor(function(err, blob) {
if (err) { return; } if (err) { return; }
waitFor.abort(); waitFor.abort();

Loading…
Cancel
Save