about summary refs log tree commit diff
path: root/src/lib/media
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-08-12 14:00:15 -0700
committerGitHub <noreply@github.com>2024-08-12 14:00:15 -0700
commit7df2327424e948e54b9731e5ab651e889f38a772 (patch)
treecd6513394de29696124374d1a72bd4cd78cbc1a7 /src/lib/media
parentae883e2df7bc53baca215fba527fe113e71cb5c2 (diff)
downloadvoidsky-7df2327424e948e54b9731e5ab651e889f38a772.tar.zst
Upgrade API, implement XRPC rework (#4857)
Co-authored-by: Matthieu Sieben <matthieu.sieben@gmail.com>
Diffstat (limited to 'src/lib/media')
-rw-r--r--src/lib/media/manip.ts8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib/media/manip.ts b/src/lib/media/manip.ts
index 3e647004b..3f01e98c5 100644
--- a/src/lib/media/manip.ts
+++ b/src/lib/media/manip.ts
@@ -218,13 +218,7 @@ export async function safeDeleteAsync(path: string) {
   // Normalize is necessary for Android, otherwise it doesn't delete.
   const normalizedPath = normalizePath(path)
   try {
-    await Promise.allSettled([
-      deleteAsync(normalizedPath, {idempotent: true}),
-      // HACK: Try this one too. Might exist due to api-polyfill hack.
-      deleteAsync(normalizedPath.replace(/\.jpe?g$/, '.bin'), {
-        idempotent: true,
-      }),
-    ])
+    await deleteAsync(normalizedPath, {idempotent: true})
   } catch (e) {
     console.error('Failed to delete file', e)
   }