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) {