From 9395a1ef1a99b7b446c2ec88783ee21f48e13c6b Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 5 Feb 2020 12:43:39 -0500 Subject: [PATCH] always write lines with a newline --- storage/file.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/storage/file.js b/storage/file.js index 92e8cceee..b55ba3051 100644 --- a/storage/file.js +++ b/storage/file.js @@ -975,10 +975,11 @@ var trimChannel = function (env, channelName, hash, _cb) { if (msgHash === hash) { // everything from this point on should be retained retain = true; - return void tempStream.write(msgObj.buff, function () { + return void tempStream.write(s_msg + '\n', function () { readMore(); }); } + readMore(); }; readMessagesBin(env, channelName, 0, handler, w(function (err) {