forked from akai/readest
fix(koplugin): avoid resurrecting deleted annotations on pull (#3639)
Closes #3621.
This commit is contained in:
@@ -177,7 +177,7 @@ export const useNotesSync = (bookKey: string) => {
|
||||
convertedNotes.forEach((note) => {
|
||||
if (note.cfi) {
|
||||
const index = getIndexFromCfi(note.cfi);
|
||||
if (index === view?.renderer.primaryIndex) {
|
||||
if (!note.deletedAt && index === view?.renderer.primaryIndex) {
|
||||
view.addAnnotation(note);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user