[folks] Use the Persona's UID instead of the IID as the Individual's ID
- From: Travis Reitter <treitter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Use the Persona's UID instead of the IID as the Individual's ID
- Date: Tue, 3 Aug 2010 21:22:28 +0000 (UTC)
commit c24fc85f5e824401a7325a487d949347dcb823f1
Author: Philip Withnall <philip withnall collabora co uk>
Date: Thu Jul 22 17:16:51 2010 +0100
Use the Persona's UID instead of the IID as the Individual's ID
Because the UID is globally unique, so this ensures that Individuals'
IDs are globally unique.
folks/individual.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/folks/individual.vala b/folks/individual.vala
index d28b741..695cad7 100644
--- a/folks/individual.vala
+++ b/folks/individual.vala
@@ -193,7 +193,7 @@ public class Folks.Individual : Object,
/* TODO: base this upon our ID in permanent storage, once we have that
*/
if (this.id == null && this._personas.data != null)
- this.id = this._personas.data.iid;
+ this.id = this._personas.data.uid;
/* Connect to all the new personas */
this._personas.foreach ((p) =>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]