mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-02 04:01:43 +02:00
mobile: fix reminders
This commit is contained in:
committed by
Abdullah Atta
parent
80f88f85ba
commit
6210dbc52a
@@ -125,7 +125,9 @@ const onEvent = async ({ type, detail }: Event) => {
|
||||
if (notification?.data?.type === "quickNote") return;
|
||||
MMKV.removeItem("appState");
|
||||
if (notification?.data?.type === "reminder" && notification?.id) {
|
||||
const reminder = db.reminders?.reminder(notification.id?.split("_")[0]);
|
||||
const reminder = await db.reminders?.reminder(
|
||||
notification.id?.split("_")[0]
|
||||
);
|
||||
if (!reminder) return;
|
||||
await sleep(1000);
|
||||
const ReminderNotify =
|
||||
@@ -183,7 +185,7 @@ const onEvent = async ({ type, detail }: Event) => {
|
||||
case "UNPIN": {
|
||||
if (!notification?.id) break;
|
||||
remove(notification?.id as string);
|
||||
const reminder = db.reminders?.reminder(
|
||||
const reminder = await db.reminders?.reminder(
|
||||
notification?.id?.split("_")[0]
|
||||
);
|
||||
if (reminder) {
|
||||
|
||||
Reference in New Issue
Block a user