From 73a03e8d8051ad4ad727397980f52bd2a4e0c0aa Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 9 Dec 2019 15:04:58 +0100 Subject: [PATCH] Fix getFullHistory and getHistory errors --- 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 15444f77b..c5b6f6a42 100644 --- a/www/common/outer/async-store.js +++ b/www/common/outer/async-store.js @@ -1708,6 +1708,7 @@ define([ var onMsg = function (msg) { if (completed) { return; } var parsed = parse(msg); + if (!parsed) { return; } if (parsed[0] === 'FULL_HISTORY_END') { cb(msgs); network.off('message', onMsg); @@ -1748,6 +1749,7 @@ define([ if (completed) { return; } if (sender !== hk) { return; } var parsed = parse(msg); + if (!parsed) { return; } // Ignore the metadata message if (parsed.validateKey && parsed.channel) { return; }