From 9bad1d03d302afde1c2f1fcc3fa592bb9801c07c Mon Sep 17 00:00:00 2001 From: webzwo0i Date: Fri, 29 Oct 2021 00:59:06 +0200 Subject: [PATCH] importHtml: do not add an useless identity changeset --- src/node/utils/ImportHtml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/utils/ImportHtml.js b/src/node/utils/ImportHtml.js index 13befe721..2749977d6 100644 --- a/src/node/utils/ImportHtml.js +++ b/src/node/utils/ImportHtml.js @@ -95,5 +95,5 @@ exports.setPadHTML = async (pad, html) => { apiLogger.debug(`The changeset: ${theChangeset}`); await pad.setText('\n'); - await pad.appendRevision(theChangeset); + if (!Changeset.isIdentity(theChangeset)) await pad.appendRevision(theChangeset); };