Skip to content

Commit 33663cc

Browse files
authored
Don't change timestamp when splitting a way (#4523)
1 parent 05e4d88 commit 33663cc

File tree

1 file changed

+3
-2
lines changed
  • app/src/main/java/de/westnordost/streetcomplete/data/osm/edits/split_way

1 file changed

+3
-2
lines changed

app/src/main/java/de/westnordost/streetcomplete/data/osm/edits/split_way/SplitWayAction.kt

+3-2
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,11 @@ private fun getSplitWayAtIndices(
130130
removeTagsThatArePotentiallyWrongAfterSplit(tags)
131131

132132
return nodesChunks.mapIndexed { index, nodes ->
133+
// keep the original timestampEdited, so resurvey quests are still shown after splitting (only when auto-sync is off)
133134
if (index == indexOfChunkToKeep) {
134-
Way(originalWay.id, nodes, tags, originalWay.version, currentTimeMillis())
135+
Way(originalWay.id, nodes, tags, originalWay.version, originalWay.timestampEdited)
135136
} else {
136-
Way(idProvider.nextWayId(), nodes, tags, 0, currentTimeMillis())
137+
Way(idProvider.nextWayId(), nodes, tags, 0, originalWay.timestampEdited)
137138
}
138139
}
139140
}

0 commit comments

Comments
 (0)