[folks] e-d-s: we should use the Persona's iid as local-ids



commit 19a426de3734cba718bc4bfa7372b2d8656ff614
Author: Raul Gutierrez Segales <rgs collabora co uk>
Date:   Mon Aug 29 18:25:00 2011 +0100

    e-d-s: we should use the Persona's iid as local-ids
    
    If we don't and use the contact_id as before, linking Personas
    from different PersonaStores won't work.
    
    Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=657635

 NEWS                               |    1 +
 backends/eds/lib/edsf-persona.vala |    4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/NEWS b/NEWS
index 602f4ee..7a401c0 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@ Bugs fixed:
 * Bug 645056 â TpLowlevel library should have only static public functions
 * Bug 653777 â Would be nice to have a helper function to create a writable
   persona
+* Bug 657635 â Linking personas from different (e-d-s) stores is not working
 
 API changes:
 * Add PersonaStore:always-writeable-properties property
diff --git a/backends/eds/lib/edsf-persona.vala b/backends/eds/lib/edsf-persona.vala
index 9f48a32..4dc8043 100644
--- a/backends/eds/lib/edsf-persona.vala
+++ b/backends/eds/lib/edsf-persona.vala
@@ -161,9 +161,9 @@ public class Edsf.Persona : Folks.Persona,
     {
       get
         {
-          if (this._local_ids.contains (this.contact_id) == false)
+          if (this._local_ids.contains (this.iid) == false)
             {
-              this._local_ids.add (this.contact_id);
+              this._local_ids.add (this.iid);
             }
           return this._local_ids_ro;
         }



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