|
|
@ -5,7 +5,7 @@ import { doSnodeBatchRequest } from './batchRequest';
|
|
|
|
import { GetNetworkTime } from './getNetworkTime';
|
|
|
|
import { GetNetworkTime } from './getNetworkTime';
|
|
|
|
import { SnodeNamespace, SnodeNamespaces } from './namespaces';
|
|
|
|
import { SnodeNamespace, SnodeNamespaces } from './namespaces';
|
|
|
|
|
|
|
|
|
|
|
|
import { DURATION } from '../../constants';
|
|
|
|
import { TTL_DEFAULT } from '../../constants';
|
|
|
|
import { UserUtils } from '../../utils';
|
|
|
|
import { UserUtils } from '../../utils';
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
RetrieveLegacyClosedGroupSubRequestType,
|
|
|
|
RetrieveLegacyClosedGroupSubRequestType,
|
|
|
@ -74,7 +74,7 @@ async function buildRetrieveRequest(
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
if (configHashesToBump?.length) {
|
|
|
|
if (configHashesToBump?.length) {
|
|
|
|
const expiry = GetNetworkTime.getNowWithNetworkOffset() + DURATION.DAYS * 30;
|
|
|
|
const expiry = GetNetworkTime.getNowWithNetworkOffset() + TTL_DEFAULT.TTL_CONFIG;
|
|
|
|
const signResult = await SnodeSignature.generateUpdateExpirySignature({
|
|
|
|
const signResult = await SnodeSignature.generateUpdateExpirySignature({
|
|
|
|
shortenOrExtend: '',
|
|
|
|
shortenOrExtend: '',
|
|
|
|
timestamp: expiry,
|
|
|
|
timestamp: expiry,
|
|
|
|