Fix API issues

This commit is contained in:
yflory 2024-12-03 16:34:10 +01:00
parent 3de5784be7
commit ced24e655b
3 changed files with 4 additions and 3 deletions

View File

@ -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];

View File

@ -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");
},

View File

@ -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);