Fix cryptget inner

This commit is contained in:
yflory
2019-12-17 10:57:13 +01:00
parent e38d6d1093
commit 5a055233c0
5 changed files with 17 additions and 9 deletions

View File

@@ -1032,7 +1032,8 @@ define([
};
makeBlock('link', function (common, cb) {
var hash = common.getMetadataMgr().getPrivateData().teamInviteHash;
var privateData = common.getMetadataMgr().getPrivateData();
var hash = privateData.teamInviteHash;
var hashData = Hash.parseTypeHash('invite', hash);
var password = hashData.password;
var seeds = InviteInner.deriveSeeds(hashData.key);
@@ -1083,7 +1084,9 @@ define([
};
nThen(function (waitFor) {
InviteInner.getPreviewContent(seeds, waitFor(function (err, json) {
InviteInner.getPreviewContent(seeds, {
origin: privateData.origin
}, waitFor(function (err, json) {
if (err) {
// XXX handle errors
}