Folks.Individual: don't use is-writeable in change_avatar
authorRaul Gutierrez Segales <rgs@collabora.co.uk>
Thu, 15 Sep 2011 13:04:13 +0000 (14:04 +0100)
committerRaul Gutierrez Segales <rgs@collabora.co.uk>
Thu, 15 Sep 2011 13:06:37 +0000 (14:06 +0100)
This is a follow-up for commit 96539acd, using PersonaStore.is_writeable
is deprecated in favour of checking Persona.writeable_properties

folks/individual.vala

index b2581ed..6733446 100644 (file)
@@ -180,8 +180,7 @@ public class Folks.Individual : Object,
       foreach (var p in this._persona_set)
         {
           var a = p as AvatarDetails;
-          if (a != null && p.store.is_writeable == true &&
-              "avatar" in p.writeable_properties)
+          if (a != null && "avatar" in p.writeable_properties)
             {
               try
                 {