Fix history size in the apps

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

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

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

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

Loading…
Cancel
Save