mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-13 18:45:43 +05:00
Fix API issues
This commit is contained in:
parent
3de5784be7
commit
ced24e655b
@ -135,7 +135,7 @@ const expireChannel = HK.expireChannel = function (Env, channel) {
|
||||
};
|
||||
|
||||
const removeChannel = HK.removeChannel = function (Env, channel) {
|
||||
if (!Env.store) { return; }
|
||||
if (!Env.store) { return; }
|
||||
Env.store.archiveChannel(channel, void 0, () => {});
|
||||
delete Env.metadata_cache[channel];
|
||||
delete Env.channel_cache[channel];
|
||||
|
||||
@ -1843,7 +1843,7 @@ define([
|
||||
Store.leavePad(null, data, function () {});
|
||||
};
|
||||
var conf = {
|
||||
Cache: store.neverCache ? undefined : Cache, // ICE pad cache
|
||||
Cache: store.neverCache ? undefined : Cache,
|
||||
onCacheStart: function () {
|
||||
postMessage(clientId, "PAD_CACHE");
|
||||
},
|
||||
|
||||
@ -113,7 +113,7 @@
|
||||
};
|
||||
|
||||
var start = function () {
|
||||
config.document.key = key;
|
||||
//config.document.key = key;
|
||||
chan.send('START', {
|
||||
key: key,
|
||||
application: config.documentType,
|
||||
@ -137,6 +137,7 @@
|
||||
blob = config.document.blob;
|
||||
return start();
|
||||
}
|
||||
// XXX Nextcloud will log us out if we try from the client
|
||||
getBlob(function (err, _blob) {
|
||||
if (err) { // Can't get blob from client, try from server
|
||||
console.warn(err);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user