Raise SEQUENCE when a create falls back to an update (#137)

This commit is contained in:
makiolaj committed 2026-11-18 21:00:37 +01:00
1 parent 4765344d50
commit 33466dc6d9
2 files changed
+13 -1

No files matched your search

@@ -499,7 +499,9 @@ class CollectionSyncer(
val existing = fetched.resources.firstOrNull()
val sameTask = existing != null && uidOf(existing.iCalendar) == local.uid
if (sameTask) {
updateResource(local, outcome.href.toString(), body)
// An update now, so SEQUENCE goes up as on any other (#137).
val revised = local.revised()
updateResource(revised, outcome.href.toString(), serialize(revised) ?: return)
return
}
name = ResourceNames.random()