From c276bf8dbec051cdae978827ffc2dc2de3d9c31b Mon Sep 17 00:00:00 2001 From: audric Date: Fri, 6 Aug 2021 10:57:01 +1000 Subject: [PATCH] fix delete_all endpoint for testnet --- preload.js | 2 +- ts/session/utils/syncUtils.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/preload.js b/preload.js index 6904d80ab..d300801b9 100644 --- a/preload.js +++ b/preload.js @@ -46,7 +46,7 @@ window.getServerTrustRoot = () => config.serverTrustRoot; window.JobQueue = JobQueue; window.isBehindProxy = () => Boolean(config.proxyUrl); -window.getStoragePubKey = key => (window.isDev() ? key.substring(0, key.length - 2) : key); +window.getStoragePubKey = key => (window.isDev() ? key.substring(2) : key); window.getDefaultFileServer = () => config.defaultFileServer; window.initialisedAPI = false; diff --git a/ts/session/utils/syncUtils.ts b/ts/session/utils/syncUtils.ts index c1690aef5..208ae63ba 100644 --- a/ts/session/utils/syncUtils.ts +++ b/ts/session/utils/syncUtils.ts @@ -174,7 +174,6 @@ export const forceNetworkDeletion = async (): Promise | null> => { timestamp, signature: signatureBase64, }; - const ret = await snodeRpc( 'delete_all', deleteMessageParams,