Skip to content

Commit

Permalink
update book timestamp when chapter is updated, markdown quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
egonSchiele committed Aug 12, 2023
1 parent 1c9786d commit 01c7f2c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Library.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,12 @@ export default function Library({ mobile = false }) {
lastHeardFromServer: data.lastHeardFromServer,
})
);
dispatch(
librarySlice.actions.updateTimestampForBook({
bookid: chapter.bookid,
lastHeardFromServer: data.lastHeardFromServer,
})
);
}
} catch (e) {
dispatch(
Expand Down
2 changes: 2 additions & 0 deletions src/TextEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ function TextEditor({
quill.formatText(index + 5, lineLength - 5, { class: "h4" });
} else if (line.startsWith("http")) {
quill.formatText(index, lineLength, { class: "link" });
} else if (line.startsWith("> ")) {
quill.formatText(index, lineLength, { class: "grayedout" });
}
index += lineLength + 1;
});
Expand Down

0 comments on commit 01c7f2c

Please sign in to comment.