mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-04-24 03:47:53 +00:00
added rebuild to sym keys
This commit is contained in:
parent
881d848d4d
commit
9d890cdcd5
@ -79,7 +79,7 @@ export const AdminSpaceInner = ({
|
||||
const res = await fetch(
|
||||
`${getBaseApiReact()}/arbitrary/DOCUMENT_PRIVATE/${
|
||||
getLatestPublish.name
|
||||
}/${getLatestPublish.identifier}?encoding=base64`
|
||||
}/${getLatestPublish.identifier}?encoding=base64&rebuild=true`
|
||||
);
|
||||
data = await res.text();
|
||||
|
||||
|
@ -66,7 +66,7 @@ export const CreateCommonSecret = ({groupId, secretKey, isOwner, myAddress, sec
|
||||
const res = await fetch(
|
||||
`${getBaseApiReact()}/arbitrary/DOCUMENT_PRIVATE/${publish.name}/${
|
||||
publish.identifier
|
||||
}?encoding=base64`
|
||||
}?encoding=base64&rebuild=true`
|
||||
);
|
||||
const data = await res.text();
|
||||
|
||||
|
@ -704,11 +704,12 @@ export const Group = ({
|
||||
if (dataFromStorage) {
|
||||
data = dataFromStorage;
|
||||
} else {
|
||||
// const shouldRebuild = !secretKeyPublishDate || (publish?.update && publish?.updated > secretKeyPublishDate)
|
||||
setIsLoadingGroupMessage("Downloading encryption keys");
|
||||
const res = await fetch(
|
||||
`${getBaseApiReact()}/arbitrary/DOCUMENT_PRIVATE/${publish.name}/${
|
||||
publish.identifier
|
||||
}?encoding=base64`
|
||||
}?encoding=base64&rebuild=true`
|
||||
);
|
||||
data = await res.text();
|
||||
}
|
||||
|
@ -497,7 +497,7 @@ export const encryptQortalGroupData = async (data, sender) => {
|
||||
if(publish === false) throw new Error('No group key found.')
|
||||
const url = await createEndpoint(`/arbitrary/DOCUMENT_PRIVATE/${publish.name}/${
|
||||
publish.identifier
|
||||
}?encoding=base64`);
|
||||
}?encoding=base64&rebuild=true`);
|
||||
|
||||
const res = await fetch(
|
||||
url
|
||||
@ -532,7 +532,7 @@ url
|
||||
if(publish === false) throw new Error('No group key found.')
|
||||
const url = await createEndpoint(`/arbitrary/DOCUMENT_PRIVATE/${publish.name}/${
|
||||
publish.identifier
|
||||
}?encoding=base64`);
|
||||
}?encoding=base64&rebuild=true`);
|
||||
|
||||
const res = await fetch(
|
||||
url
|
||||
@ -592,7 +592,7 @@ export const decryptQortalGroupData = async (data, sender) => {
|
||||
if(publish === false) throw new Error('No group key found.')
|
||||
const url = await createEndpoint(`/arbitrary/DOCUMENT_PRIVATE/${publish.name}/${
|
||||
publish.identifier
|
||||
}?encoding=base64`);
|
||||
}?encoding=base64&rebuild=true`);
|
||||
|
||||
const res = await fetch(
|
||||
url
|
||||
@ -623,7 +623,7 @@ url
|
||||
if(publish === false) throw new Error('No group key found.')
|
||||
const url = await createEndpoint(`/arbitrary/DOCUMENT_PRIVATE/${publish.name}/${
|
||||
publish.identifier
|
||||
}?encoding=base64`);
|
||||
}?encoding=base64&rebuild=true`);
|
||||
|
||||
const res = await fetch(
|
||||
url
|
||||
|
Loading…
x
Reference in New Issue
Block a user