fix(kobo): refuse a replacement with the bytes the device already has

A replacement byte-identical to the device's copy was never downloaded, so
it stayed offered and every bookmark the device pushed was discarded.
Keep the current delivery instead, and tell the user in the replacement
panel that the device already has this copy.

Ref #1786
This commit is contained in:
neon
2026-10-17 00:10:32 +00:00
parent 5051ec0913
commit abb44aa47a
6 changed files with 61 additions and 6 deletions
+1
View File
@@ -13986,6 +13986,7 @@
"prepared": "Replacement prepared: {format}, {size}. Remove this book only from the selected device, then offer the prepared replacement and sync.",
"offered": "Replacement offered. Sync and download on the device, then confirm installation. A completed HTTP transfer does not prove installation.",
"cancelled": "Replacement cancelled. Cancellation does not restore a removed or partially replaced device copy. Select the same book to prepare a recovery download.",
"alreadyOnDevice": "The device already has this exact copy, so there is nothing to replace.",
"failed": "Could not prepare or update this replacement.",
"searchBook": "Search for a book",
"chooseBook": "Select a book",