Owned profile
This commit is contained in:
@@ -643,10 +643,19 @@ define([
|
|||||||
replaceHash(Utils.Hash.getEditHashFromKeys(wc, secret.keys));
|
replaceHash(Utils.Hash.getEditHashFromKeys(wc, secret.keys));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Object.keys(rtConfig).forEach(function (k) {
|
|
||||||
cpNfCfg[k] = rtConfig[k];
|
nThen(function (waitFor) {
|
||||||
|
if (isNewFile && cfg.owned && !window.location.hash) {
|
||||||
|
Cryptpad.getMetadata(waitFor(function (err, m) {
|
||||||
|
cpNfCfg.owners = [m.priv.edPublic];
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
}).nThen(function () {
|
||||||
|
Object.keys(rtConfig).forEach(function (k) {
|
||||||
|
cpNfCfg[k] = rtConfig[k];
|
||||||
|
});
|
||||||
|
CpNfOuter.start(cpNfCfg);
|
||||||
});
|
});
|
||||||
CpNfOuter.start(cpNfCfg);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
sframeChan.on('Q_CREATE_PAD', function (data, cb) {
|
sframeChan.on('Q_CREATE_PAD', function (data, cb) {
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ define([
|
|||||||
getSecrets: getSecrets,
|
getSecrets: getSecrets,
|
||||||
noHash: true, // Don't add the hash in the URL if it doesn't already exist
|
noHash: true, // Don't add the hash in the URL if it doesn't already exist
|
||||||
addRpc: addRpc,
|
addRpc: addRpc,
|
||||||
|
owned: true
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user