Skip to content

Commit

Permalink
Enforce hidden status when syncing local only completed tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
opatry committed Oct 28, 2024
1 parent 80c4334 commit 0221c30
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ private fun TaskEntity.asTask(): Task {
updatedDate = lastUpdateDate,
status = if (isCompleted) Task.Status.Completed else Task.Status.NeedsAction,
completedDate = completionDate,
// doc says it's a read only field, but status is not hidden when syncing local only completed tasks
// forcing the hidden status works and makes everything more consistent (position following 099999... pattern, hidden status)
isHidden = isCompleted,
position = position,
)
}
Expand Down

0 comments on commit 0221c30

Please sign in to comment.