cozy / cozy-contacts-v2

Contact books manager for Cozy
http://cozy.io
GNU Affero General Public License v3.0
20 stars 20 forks source link

Removed contacts with double dashes on mobile #277

Open Stricnis opened 8 years ago

Stricnis commented 8 years ago

Hi,

I've started using Cozy Cloud today from my computer and with the Android app on my mobile. I first synchronized my contacts from Google. Import operation ran fine and helps me spotting many duplicates in my Contacts list. So I merged/removed many contacts from Cozy Cloud web app in the browser.
Contacts were sync'ed to my mobile, except that contact appearing as merged in Cozy Cloud are not merged on my mobile and all removed and "removed by merge process" are now visible with a double dash prefix in Android native Contacts app. These contacts are not visible in my browser, only on my mobile. All these double-dash contacts contacts are stored on myCozy account on the mobile.
Any idea regarding the issue? Can I easily get rid of them or do I have to delete them 1 by 1?
Build version of Phone application: 2.5.12_rc9 Android version: 6.0.1 Cozy mobile version: 1.3.1

clochix commented 8 years ago

Hi @Stricnis,

Thanks for your report. I don't know if this issue comes from the contact application or the mobile application. The later is in charge of syncing contents between your phone and your server.

Are your contacts also synchronized between your phone and Google?

Are you self-hosted or using one of our beta test instance? (asking to have a look at the logs).

Stricnis commented 8 years ago

Hi @clochix,

I'm using one of your beta instance.

I've disabled Contact sync on my Google account, resync many times from Cozy mobile but still get these contacts with double dashes on my phone. However, they don't appear at all in my browser when I browse Contacts from Cozy web app.

clochix commented 8 years ago

Could you send us an email ( contact at cozycloud.cc) with the URL of your server, so I can have a look at its logs?

@kosssi : any thought on this?

Stricnis commented 8 years ago

Message sent. Forgot to add a reference to this thread, even though I replied to the Github notification email. Hope it will be enough, I can resend if necessary.

clochix commented 8 years ago

Sorry for replying so late. I had a look at the logs on your server, and find nothing suspicious.

I also had a look inside database, and didn't find any contact with the double dash.

Could you send us the logs of the mobile app, so we look for any errors in there?

kosssi commented 8 years ago

The double dash is added by Android system, in your Cozy it's contact without name on bottom list ;)

Stricnis commented 8 years ago

Hmm, don't get it: I see less than 200 contacts (191 exactly) in my CozyCloud Contacts web page now that I've merged them. On my mobile, I've around 140 contacts with double dashes and around 250 with no double dashes as merged contacts were not correctly sync'ed. That's a total of nearly 400 instead of 191. How can I force a sync to get the same exact view (i.e. 191 contacts) as in cozycloud.cc web page? I did force a sync from mobile app many times with no success. It would probably have been better to merge the contacts from Google before sync'ing them in my Cozycloud but it was the occasion to test your merge feature :) And I no more have logs of the primary sync as I had to make place on my phone :(