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: update store on reminder change from notification
ammarahm-ed1ef4dcb52c15
diff --git a/apps/mobile/app/services/notifications.ts b/apps/mobile/app/services/notifications.tsindex c8fe4031e..bb851912c 100644--- a/apps/mobile/app/services/notifications.ts+++ b/apps/mobile/app/services/notifications.ts@@ -42,6 +42,7 @@ import SettingsService from "./settings";import { useSettingStore } from "../stores/use-setting-store";import ReminderNotify from "../components/sheets/reminder-notify";import { sleep } from "../utils/time";+import { useRelationStore } from "../stores/use-relation-store";export type Reminder = {id: string;@@ -134,6 +135,7 @@ const onEvent = async ({ type, detail }: Event) => {await Notifications.scheduleNotification(db.reminders?.reminder(reminder?.id));+ useRelationStore.getState().update();break;}case "REMINDER_DISABLE": {@@ -147,6 +149,7 @@ const onEvent = async ({ type, detail }: Event) => {await Notifications.scheduleNotification(db.reminders?.reminder(reminder?.id));+ useRelationStore.getState().update();break;}case "UNPIN":