setText: prevent adding useless revision in case the pad text did not

change
This commit is contained in:
webzwo0i 2021-10-29 00:54:18 +02:00 committed by Richard Hansen
parent 63de249236
commit f7f5e3dad8

View file

@ -258,7 +258,7 @@ Pad.prototype.setText = async function (newText) {
}
// append the changeset
await this.appendRevision(changeset);
if (newText !== oldText) await this.appendRevision(changeset);
};
Pad.prototype.appendText = async function (newText) {