Fix invalid PIN and UNPIN commands

This commit is contained in:
yflory 2025-10-24 15:50:54 +02:00
parent 2b89e479f8
commit 0dd3c1f53d

View File

@ -125,8 +125,8 @@ define([
});
toPin = Utils.Util.deduplicateString(toPin);
toUnpin = Utils.Util.deduplicateString(toUnpin);
Cryptpad.pinPads(toPin, function () {});
Cryptpad.unpinPads(toUnpin, function () {});
if (toPin.length) { Cryptpad.pinPads(toPin, function () {}); }
if (toUnpin.length) { Cryptpad.unpinPads(toUnpin, function () {}); }
if (!toPin.length && !toUnpin.length) { return; }
Cryptpad.setPadAttribute('ooImages', list, function (err) {
if (err) { console.error(err); }