From a57eaf9be61406d581abb2336927f43cbf012b85 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Mon, 5 Jun 2023 11:50:45 +0500 Subject: [PATCH] mobile: sync with core changes --- apps/mobile/app/screens/editor/tiptap/use-editor.ts | 4 ++-- apps/mobile/app/screens/settings/title-format.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/mobile/app/screens/editor/tiptap/use-editor.ts b/apps/mobile/app/screens/editor/tiptap/use-editor.ts index c2151e542..a134402c6 100644 --- a/apps/mobile/app/screens/editor/tiptap/use-editor.ts +++ b/apps/mobile/app/screens/editor/tiptap/use-editor.ts @@ -214,9 +214,9 @@ export const useEditor = ( const defaultNotebook = db.settings?.getDefaultNotebook(); if (!state.current.onNoteCreated && defaultNotebook) { onNoteCreated(id, { - type: defaultNotebook.type, + type: defaultNotebook.topic ? "topic" : "notebook", id: defaultNotebook.id, - notebook: defaultNotebook.notebookId + notebook: defaultNotebook.topic }); } else { state.current?.onNoteCreated && state.current.onNoteCreated(id); diff --git a/apps/mobile/app/screens/settings/title-format.tsx b/apps/mobile/app/screens/settings/title-format.tsx index e5cf056be..750c4d674 100644 --- a/apps/mobile/app/screens/settings/title-format.tsx +++ b/apps/mobile/app/screens/settings/title-format.tsx @@ -53,7 +53,7 @@ export const TitleFormat = () => { {"\n"} $date$: Current date{"\n"} $time$: Current time{"\n"} - $count$: Number of untitled notes + 1{"\n"} + $count$: Number of notes + 1{"\n"} $headline$: Use starting line of the note as title{"\n"}