From ff73e96cb80a9ca8a6dc87bbeb7c8207de5d7372 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 17 Feb 2020 12:02:49 -0500 Subject: [PATCH] reimplement the trim history fix from staging --- lib/storage/file.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/storage/file.js b/lib/storage/file.js index 6b1577d80..b1ac4de3d 100644 --- a/lib/storage/file.js +++ b/lib/storage/file.js @@ -970,6 +970,7 @@ var trimChannel = function (env, channelName, hash, _cb) { } var msg = Util.tryParse(s_msg); + if (!msg) { return void readMore(); } var msgHash = Extras.getHash(msg[4]); if (msgHash === hash) {