Fix placeholder issues

This commit is contained in:
yflory 2024-10-29 11:20:12 +01:00
parent 0d872af27d
commit 235c04f2ad
2 changed files with 6 additions and 2 deletions

View File

@ -143,7 +143,8 @@ const dropChannel = HK.dropChannel = function (Env, chanName) {
delete Env.channel_cache[chanName];
if (meta && meta.selfdestruct && Env.selfDestructTo) {
Env.selfDestructTo[chanName] = setTimeout(function () {
expireChannel(Env, chanName);
if (!Env.store) { return; }
Env.store.archiveChannel(chanName, false, () => {});
}, TEMPORARY_CHANNEL_LIFETIME);
}
if (Env.store) { Env.store.closeChannel(chanName, function () {}); }

View File

@ -131,7 +131,10 @@
return start();
}
getBlob(function (err, _blob) {
if (err) { reject(err); return console.error(err); }
if (err) { // Can't get blob from client, try from server
console.warn(err);
return void start();
}
_blob.name = `document.${config.document.fileType}`;
blob = _blob;
start();