From e5935d7febcd7c00bf17f03cdaf42d01c3183272 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 23 Mar 2021 13:34:44 +0100 Subject: [PATCH 1/2] Clear channel cache when destroying a pad owned by a team --- www/common/outer/team.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/outer/team.js b/www/common/outer/team.js index 742836fb9..7eb618d63 100644 --- a/www/common/outer/team.js +++ b/www/common/outer/team.js @@ -187,7 +187,7 @@ define([ team.rpc = call; team.onRpcReadyEvt.fire(); cb(); - }); + }, Cache); }); }; From e874e494412401a4cc981af64c205bdf2ff0dbd4 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 23 Mar 2021 13:40:25 +0100 Subject: [PATCH 2/2] Remove debugging code --- www/common/outer/async-store.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/www/common/outer/async-store.js b/www/common/outer/async-store.js index b9649da74..c61e9559a 100644 --- a/www/common/outer/async-store.js +++ b/www/common/outer/async-store.js @@ -1732,13 +1732,11 @@ define([ postMessage(clientId, "PAD_CACHE"); }, onCacheReady: function () { - channel.hasCache = true; postMessage(clientId, "PAD_CACHE_READY"); }, onReady: function (pad) { var padData = pad.metadata || {}; channel.data = padData; - channel.ready = true; if (padData && padData.validateKey && store.messenger) { store.messenger.storeValidateKey(data.channel, padData.validateKey); }