mobile: sync with core changes

This commit is contained in:
ammarahm-ed
2023-06-05 11:50:45 +05:00
committed by Abdullah Atta
parent c5a264270c
commit a57eaf9be6
2 changed files with 3 additions and 3 deletions

View File

@@ -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);

View File

@@ -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"}
</Paragraph>
</>