A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
mobile: fix bulk delete call
Ammar Ahmed82baf41d8e45
diff --git a/apps/mobile/app/common/filesystem/io.ts b/apps/mobile/app/common/filesystem/io.tsindex ff9723bea..c3db265aa 100644--- a/apps/mobile/app/common/filesystem/io.ts+++ b/apps/mobile/app/common/filesystem/io.ts@@ -179,11 +179,18 @@ export async function bulkDeleteFiles(try {const { url, headers } = requestOptions;- const response = await RNFetchBlob.fetch("POST", url, headers, {- names: filenames+ const response = await fetch(url, {+ method: "POST",+ headers: {+ ...headers,+ "Content-Type": "application/json"+ },+ body: JSON.stringify({+ names: filenames+ })});- const result = isSuccessStatusCode(response.respInfo.status);+ const result = isSuccessStatusCode(response.status);if (result) {filenames.forEach((filename) => {deleteLocalFile(filename);