Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: disable automatic orphaned attachment removal

Abdullah Atta80c44eee8966
diff --git a/apps/mobile/app/hooks/use-app-events.tsx b/apps/mobile/app/hooks/use-app-events.tsx
index 3859f3cbf..e2f0fb115 100644
--- a/apps/mobile/app/hooks/use-app-events.tsx
+++ b/apps/mobile/app/hooks/use-app-events.tsx
@@ -537,7 +537,6 @@ const initializeDatabase = async (password?: string) => {
Notifications.restorePinnedNotes();
expiringNotesTimer();
deleteDCacheFiles();
- db.attachments.removeOrphaned();
}
Walkthrough.init();
};