[folks] Unset the self-contact on Tpf.PersonaStore when resetting the store



commit f84d14b88ea1aceee2f3586593a967fcb87ef181
Author: Philip Withnall <philip tecnocode co uk>
Date:   Thu Jun 16 18:32:06 2011 +0100

    Unset the self-contact on Tpf.PersonaStore when resetting the store

 backends/telepathy/lib/tpf-persona-store.vala |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/backends/telepathy/lib/tpf-persona-store.vala b/backends/telepathy/lib/tpf-persona-store.vala
index 4b18ebd..fd5683f 100644
--- a/backends/telepathy/lib/tpf-persona-store.vala
+++ b/backends/telepathy/lib/tpf-persona-store.vala
@@ -82,7 +82,7 @@ public class Tpf.PersonaStore : Folks.PersonaStore
   private TpLowlevel _ll;
   private AccountManager _account_manager;
   private Logger _logger;
-  private Contact _self_contact;
+  private Contact? _self_contact;
   private MaybeBool _can_add_personas = MaybeBool.UNSET;
   private MaybeBool _can_alias_personas = MaybeBool.UNSET;
   private MaybeBool _can_group_personas = MaybeBool.UNSET;
@@ -477,6 +477,7 @@ public class Tpf.PersonaStore : Folks.PersonaStore
 
       this._groups = new HashMap<string, Channel> ();
       this._favourite_handles = new HashSet<uint> ();
+      this._self_contact = null;
       this._ll = new TpLowlevel ();
     }
 



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