From cc163f83c71ab2e568fc134c768788e7cbfd452a Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 1 Jun 2018 10:52:54 +0200 Subject: [PATCH] Fix an issue creating duplicate files in the drive --- www/common/sframe-common-outer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/common/sframe-common-outer.js b/www/common/sframe-common-outer.js index fcebc354f..c06c1e376 100644 --- a/www/common/sframe-common-outer.js +++ b/www/common/sframe-common-outer.js @@ -305,10 +305,12 @@ define([ sframeChan.on('Q_SET_PAD_TITLE_IN_DRIVE', function (newTitle, cb) { currentTitle = newTitle; setDocumentTitle(); + var channel = parsed.type === 'file' ? Utils.Util.base64ToHex(secret.channel) + : secret.channel; var data = { password: password, title: newTitle, - channel: secret.channel, + channel: channel, path: initialPathInDrive // Where to store the pad if we don't have it in our drive }; Cryptpad.setPadTitle(data, function (err) {