Skip to content

Commit

Permalink
Don't change timestamp when splitting a way (#4523)
Browse files Browse the repository at this point in the history
  • Loading branch information
Helium314 authored Oct 17, 2022
1 parent 05e4d88 commit 33663cc
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,11 @@ private fun getSplitWayAtIndices(
removeTagsThatArePotentiallyWrongAfterSplit(tags)

return nodesChunks.mapIndexed { index, nodes ->
// keep the original timestampEdited, so resurvey quests are still shown after splitting (only when auto-sync is off)
if (index == indexOfChunkToKeep) {
Way(originalWay.id, nodes, tags, originalWay.version, currentTimeMillis())
Way(originalWay.id, nodes, tags, originalWay.version, originalWay.timestampEdited)
} else {
Way(idProvider.nextWayId(), nodes, tags, 0, currentTimeMillis())
Way(idProvider.nextWayId(), nodes, tags, 0, originalWay.timestampEdited)
}
}
}
Expand Down

0 comments on commit 33663cc

Please sign in to comment.