summaryrefslogtreecommitdiff
path: root/backends/eds
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2013-02-18 12:19:08 +0100
committerPatrick Ohly <patrick.ohly@intel.com>2013-02-18 12:25:30 +0100
commitdcc558d87d113dae0aa8721db3d80261c08dee57 (patch)
treeaf37ae15bca242caa3ffb8139a31b57918365186 /backends/eds
parent6aaded38f044d6dc2bb28db020bcdaff32e09c76 (diff)
eds: fix Android favourite handling when creating contact
When processing PersonaDetail.GROUPS before PersonaDetail.IS_FAVOURITE while creating a new contact in EDS, the special code for adding the contact to the “Starred in Android” group (bgo#661490 was skipped). We must go through _set_is_favourite instead of _set_contact_is_favourite to get that part done, too.
Diffstat (limited to 'backends/eds')
-rw-r--r--backends/eds/lib/edsf-persona-store.vala4
1 files changed, 3 insertions, 1 deletions
diff --git a/backends/eds/lib/edsf-persona-store.vala b/backends/eds/lib/edsf-persona-store.vala
index 1fb875b9..16503ac9 100644
--- a/backends/eds/lib/edsf-persona-store.vala
+++ b/backends/eds/lib/edsf-persona-store.vala
@@ -547,7 +547,9 @@ public class Edsf.PersonaStore : Folks.PersonaStore
PersonaDetail.IS_FAVOURITE))
{
is_fav = v.get_boolean ();
- this._set_contact_is_favourite (contact, is_fav);
+ // Use _set_is_favourite here to get the contact added
+ // to the Android "favourite" group.
+ this._set_is_favourite (contact, is_fav);
}
}