From b0311ccec1f82cff15c7f48efd7c20439622f354 Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 1 Jun 2018 12:09:29 +0200 Subject: [PATCH] Don't create file duplicates in the drive --- www/common/sframe-common-outer.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/www/common/sframe-common-outer.js b/www/common/sframe-common-outer.js index 0346bde2c..c78bf53f9 100644 --- a/www/common/sframe-common-outer.js +++ b/www/common/sframe-common-outer.js @@ -315,12 +315,10 @@ 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: channel, + channel: secret.channel, path: initialPathInDrive // Where to store the pad if we don't have it in our drive }; Cryptpad.setPadTitle(data, function (err) {