From 827a47d9b77273eb24fdc48c8f4577ab4c13e5ff Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 16 May 2019 14:11:31 +0200 Subject: [PATCH 1/2] Fix issue when reconnecting to a pad --- www/common/outer/async-store.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/common/outer/async-store.js b/www/common/outer/async-store.js index f9bca1e35..8a786aeec 100644 --- a/www/common/outer/async-store.js +++ b/www/common/outer/async-store.js @@ -1084,6 +1084,7 @@ define([ channel.queue.forEach(function (data) { channel.sendMessage(data.message, clientId); }); + channel.queue = []; channel.bcast("PAD_CONNECT", { myID: wc.myID, id: wc.id, From 909e70905c0ee345a5f0a1efc5759b4549a36d25 Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 16 May 2019 15:20:50 +0200 Subject: [PATCH 2/2] Add comment --- www/common/outer/async-store.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/common/outer/async-store.js b/www/common/outer/async-store.js index 8a786aeec..2b6663ef2 100644 --- a/www/common/outer/async-store.js +++ b/www/common/outer/async-store.js @@ -1055,6 +1055,8 @@ define([ }, onConnectionChange: function () {}, crypto: { + // The encryption and decryption is done in the outer window. + // This async-store only deals with already encrypted messages. encrypt: function (m) { return m; }, decrypt: function (m) { return m; } },