mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Lookup highlight from store before syncing deletion changes so we have the latest copy in memory
This commit is contained in:
parent
1cffdf2bbe
commit
5c636e7482
1 changed files with 7 additions and 7 deletions
|
|
@ -59,14 +59,14 @@ public extension DataService {
|
|||
highlight.remove(inContext: context)
|
||||
} else {
|
||||
highlight.serverSyncStatus = Int64(ServerSyncStatus.needsDeletion.rawValue)
|
||||
}
|
||||
|
||||
do {
|
||||
try context.save()
|
||||
logger.debug("Highlight deleted succesfully")
|
||||
} catch {
|
||||
context.rollback()
|
||||
logger.debug("Failed to delete Highlight: \(error.localizedDescription)")
|
||||
}
|
||||
do {
|
||||
try context.save()
|
||||
logger.debug("Highlight deleted succesfully")
|
||||
} catch {
|
||||
context.rollback()
|
||||
logger.debug("Failed to delete Highlight: \(error.localizedDescription)")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue