In my android app i have setup pull replication with sync_gateway.
Due to the specific app's logic, whenever a conflict is detected, i need to keep just the document revision replicated from the server.
I'm able to define which conflicting version comes from the replication (server) and which one comes from a local modification (mobile app).
If i create tombstones and a new revision with the data from the replication revision (which is the suggested approach), i will have continuos conflicts because the local revision id will be always different from the one on the server (any new revision used to elect the currentRevision will have a different id).
My best solution would be to keep just the server revision as the current revision and discard any other.
How can i do this?
Is it possible to purge revisions? Or is it possibile to create an object that contains just the server revision so that after conflict resolution any other pull without conflict will just update my document? I need a behaviour similar to an override.