Don't create file duplicates in the drive

pull/1/head
yflory 7 years ago
parent 21366c252d
commit b0311ccec1

@ -315,12 +315,10 @@ define([
sframeChan.on('Q_SET_PAD_TITLE_IN_DRIVE', function (newTitle, cb) { sframeChan.on('Q_SET_PAD_TITLE_IN_DRIVE', function (newTitle, cb) {
currentTitle = newTitle; currentTitle = newTitle;
setDocumentTitle(); setDocumentTitle();
var channel = parsed.type === 'file' ? Utils.Util.base64ToHex(secret.channel)
: secret.channel;
var data = { var data = {
password: password, password: password,
title: newTitle, title: newTitle,
channel: channel, channel: secret.channel,
path: initialPathInDrive // Where to store the pad if we don't have it in our drive path: initialPathInDrive // Where to store the pad if we don't have it in our drive
}; };
Cryptpad.setPadTitle(data, function (err) { Cryptpad.setPadTitle(data, function (err) {

Loading…
Cancel
Save