mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-12 19:49:59 +05:00
Fix placeholder issues
This commit is contained in:
parent
0d872af27d
commit
235c04f2ad
@ -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 () {}); }
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user