Nextcloud sync in to device only deletes contacts on server

REPRODUCIBILITY (% or how often): 100%
BUILD ID = OS VERSION (Settings > About product): 4.1.
HARDWARE (XA2, Xperia 10…): Xperia X
UI LANGUAGE: english
REGRESSION: (compared to previous public release: Yes, No, ?):

DESCRIPTION:

as i can not delete contacts stored on phone, i tried to delete the whole contact, to delete locally the nextcloud contact and the one stored on the phone.
i have changed sync mode to device only but that still deleted the contacs on host too

PRECONDITIONS:

nextcloud account, contacts synced down

STEPS TO REPRODUCE:

  1. contacts are there in nexcloud
  2. nextcloud account is set up in two way mode AND sync changes automatically, have contacts synced down
  3. switch mode to device only
    3b) the checkbox for ‘sync changes automatically’ is still checked <<- i suspect this is the reason for the bug
  4. delete contact locally
  5. execute sync
  6. contact is gone from server

EXPECTED RESULT:

contact should remain on server and be recreated locally

ACTUAL RESULT:

contact is gone from both

ADDITIONAL INFORMATION:

(Please ALWAYS attach relevant data such as logs, screenshots, etc…)
i did even reboot between switch from two way sync to to local only

Thanks for the report, is this issue still valid with the latest release?

I can not test this, cause my nextcloud provider is not able to restore my contacs …