[folks] bluez: Mark photos as initially up-to-date



commit 96884ec0a3d1a85b6a4523ebc309ef2814e0360f
Author: Philip Withnall <philip tecnocode co uk>
Date:   Thu Aug 14 00:00:57 2014 +0100

    bluez: Mark photos as initially up-to-date
    
    The BlueZ backend only downloads contact photos if it determines its set
    of photos is out of date (since BlueZ only lets it download _all_
    photos, or _no_ photos). However, the variable controlling this could
    never actually be set to true, so the backend always thought its set of
    photos was outdated, and always re-downloaded them.

 backends/bluez/bluez-persona-store.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/backends/bluez/bluez-persona-store.vala b/backends/bluez/bluez-persona-store.vala
index 01ec6a3..d4eb76e 100644
--- a/backends/bluez/bluez-persona-store.vala
+++ b/backends/bluez/bluez-persona-store.vala
@@ -75,7 +75,7 @@ public class Folks.Backends.BlueZ.PersonaStore : Folks.PersonaStore
   private Cancellable? _update_contacts_cancellable = null;
   /* Non-0 iff an _update_contacts() call is scheduled. */
   private uint _update_contacts_id = 0;
-  private bool _photos_up_to_date = false;
+  private bool _photos_up_to_date = true;
   /* Counter of the number of _update_contacts() calls which have been
    * scheduled. */
   private uint _update_contacts_n = 0;
@@ -274,7 +274,7 @@ public class Folks.Backends.BlueZ.PersonaStore : Folks.PersonaStore
     {
       var added_personas = new HashSet<Persona> ();
       var removed_personas = new HashSet<Persona> ();
-      var photos_up_to_date = this._photos_up_to_date;
+      var photos_up_to_date = true;
 
       debug ("Parsing contacts from file ā€˜%sā€™.", file.get_path ());
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]