diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2015-06-16 14:42:08 +0100 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2015-06-16 14:42:08 +0100 |
commit | 01ad839337bbb2db66c3bcbd9097b24fd2565a37 (patch) | |
tree | 822c37f06b4b604e1619ffe605a498fc3573de73 | |
parent | 41729cb44496f80e6d7847312a960e7b8c0d7543 (diff) | |
download | folks-01ad839337bbb2db66c3bcbd9097b24fd2565a37.tar.gz |
eds: Do not pass empty vCard attribute groups to EDS
Older version of EDS do not treat the following two calls as equivalent:
new VCardAttribute (null, "X-HELLO")
new VCardAttribute ("", "X-HELLO")
when they should be. Work around that by always passing null anyway.
https://bugzilla.gnome.org/show_bug.cgi?id=751044
-rw-r--r-- | backends/eds/lib/edsf-persona-store.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/eds/lib/edsf-persona-store.vala b/backends/eds/lib/edsf-persona-store.vala index 451fcd45..aa3f05f5 100644 --- a/backends/eds/lib/edsf-persona-store.vala +++ b/backends/eds/lib/edsf-persona-store.vala @@ -1787,7 +1787,7 @@ public class Edsf.PersonaStore : Folks.PersonaStore if (prev_attr != null) vcard.remove_attribute (prev_attr); - E.VCardAttribute new_attr = new E.VCardAttribute ("", name); + E.VCardAttribute new_attr = new E.VCardAttribute (null, name); new_attr.add_value (details.value); vcard.add_attribute (new_attr); @@ -2273,7 +2273,7 @@ public class Edsf.PersonaStore : Folks.PersonaStore if (prev_attr != null) contact.remove_attributes (null, group_ids_str); - E.VCardAttribute new_attr = new E.VCardAttribute ("", group_ids_str); + E.VCardAttribute new_attr = new E.VCardAttribute (null, group_ids_str); foreach (var group in system_groups) { if (group == null || group == "") |