|
|
|
@ -495,6 +495,12 @@ define([
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
sframeChan.on('Q_ACCEPT_OWNERSHIP', function (data, cb) {
|
|
|
|
|
var parsed = Utils.Hash.parsePadUrl(data.href);
|
|
|
|
|
if (parsed.type === 'drive') {
|
|
|
|
|
// Shared folder
|
|
|
|
|
var secret = Utils.Hash.getSecrets(parsed.type, parsed.hash, data.password);
|
|
|
|
|
Cryptpad.addSharedFolder(null, secret, cb);
|
|
|
|
|
} else {
|
|
|
|
|
var _data = {
|
|
|
|
|
password: data.password,
|
|
|
|
|
href: data.href,
|
|
|
|
@ -507,6 +513,7 @@ define([
|
|
|
|
|
Cryptpad.setPadTitle(_data, function (err) {
|
|
|
|
|
cb({error: err});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Also add your mailbox to the metadata object
|
|
|
|
|
var padParsed = Utils.Hash.parsePadUrl(data.href);
|
|
|
|
|