nemomobile-ux / glacier-contacts

Apache License 2.0
0 stars 2 forks source link

update of contacts doesn't work #35

Closed jmlich closed 2 years ago

jmlich commented 3 years ago

The terminal contain following output:

qml: [saveContact] Saved contact
"Error: contacts from aggregate collection specified in batch save!"
Contact request 4 error: 11

The error message and code origin is at https://github.com/sailfishos/qtcontacts-sqlite/blob/master/src/engine/contactwriter.cpp#L3496 After adding of debug message is clear that this part of code is really invoked during save failure. The m_managerUri value was "qtcontacts:org.nemomobile.contacts.sqlite:".

jmlich commented 2 years ago

If I understand correctly, the contact aggregates data from more sources. It is necessary to update data of the original contact not of the result of aggregation.

jmlich commented 2 years ago

It is not perfect, but it works somehow.