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