Sync issues when using multiple clients

Nextcloud version : 19.0.4
Operating system and version : debian 10
Apache or nginx version : apache 2.4.38
PHP version (eg, 7.1): 7.3

The issue you are facing:

I’m facing an issue: I use different desktop clients on different laptops syncing my Nextcloud folder whereby moving or deleting files is not handled well.
Imagine the folowing situation:

  • Laptop 1
    Nextcloud folder containing the following files:
    A
    B
    C

Moving files A & B to folder X
Desktop clients sync to server. Situation after:

NC-folder
C
-X-folder
A
B

  • Laptop 2
    Recognizes new x-folder and syncs it contents. BUT it does not recognize that files A & B are moved to x-folder and UPLOADS it again.
    Situation after:
    NC-folder
    A
    B
    C
    -X-folder
    A
    B

So basically it duplicates files instead of moving them. The same also applies when deleting files on Laptop 1; then Laptop 2 uploads it and so Laptop 1 downloads it again (fyi: the laptops are not syncing at the same time).

This gives me an headache because I got lot of duplicate files, folders which needs to be re-arranged then. I already installed Redis instead of memcache as described here but does not solve my problem.

Anyone ideas?