Skip to content

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

mobile: fix notes in notifications not launch on app start

Ammar Ahmed60c8d5ac8979
diff --git a/apps/mobile/app/hooks/use-app-events.tsx b/apps/mobile/app/hooks/use-app-events.tsx
index c9f60941d..03c932a37 100644
--- a/apps/mobile/app/hooks/use-app-events.tsx
+++ b/apps/mobile/app/hooks/use-app-events.tsx
@@ -679,6 +679,9 @@ export const useAppEvents = () => {
if (db.isInitialized) {
Notifications.setupReminders(true);
+ if (SettingsService.get().notifNotes) {
+ Notifications.pinQuickNote(false);
+ }
useSettingStore.getState().setAppLoading(false);
DatabaseLogger.info("Database initialized");
}