eds: Add gender as an always-writeable property
authorPhilip Withnall <philip@tecnocode.co.uk>
Sat, 17 Sep 2011 18:19:43 +0000 (19:19 +0100)
committerPhilip Withnall <philip@tecnocode.co.uk>
Sat, 17 Sep 2011 18:58:28 +0000 (19:58 +0100)
This is because it uses a custom vCard attribute, so no EDS backend actually
says it's supported. We assume that the backends will save these custom
vCard attributes safely.

backends/eds/lib/edsf-persona-store.vala

index 74735b6..4ad5d9d 100644 (file)
@@ -649,12 +649,14 @@ public class Edsf.PersonaStore : Folks.PersonaStore
                 {
                   string[] fields = supported_fields.split (",");
 
-                  /* We always support local-ids and web-service-addresses
-                   * because we use custom vCard attributes for them. */
+                  /* We always support local-ids, web-service-addresses and
+                   * gender because we use custom vCard attributes for them. */
                   prop_set.add (Folks.PersonaStore.detail_key (
                       PersonaDetail.LOCAL_IDS));
                   prop_set.add (Folks.PersonaStore.detail_key (
                       PersonaDetail.WEB_SERVICE_ADDRESSES));
+                  prop_set.add (Folks.PersonaStore.detail_key (
+                      PersonaDetail.GENDER));
 
                   foreach (unowned string field in fields)
                     {