mirror of
https://github.com/dergigi/boris.git
synced 2025-12-18 23:24:22 +01:00
fix(reader): trigger archive animation even if already archived on auto-complete
This commit is contained in:
@@ -190,8 +190,13 @@ const ContentPanel: React.FC<ContentPanelProps> = ({
|
||||
onSave: handleSavePosition,
|
||||
onReadingComplete: () => {
|
||||
// Auto-mark as read when reading is complete (if enabled in settings)
|
||||
if (activeAccount && !isMarkedAsRead && settings?.autoMarkAsReadOnCompletion) {
|
||||
if (!settings?.autoMarkAsReadOnCompletion || !activeAccount) return
|
||||
if (!isMarkedAsRead) {
|
||||
handleMarkAsRead()
|
||||
} else {
|
||||
// Already archived: still show the success animation for feedback
|
||||
setShowCheckAnimation(true)
|
||||
setTimeout(() => setShowCheckAnimation(false), 600)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user