=?utf-8?q?=5Bfolks=5D_telepathy=3A_Don=E2=80=99t_create_PersonaStores_for?= =?utf-8?q?_disabled_accounts?=



commit 1446c3ed1adafbb153925b81e42e3f199cc1e63a
Author: Philip Withnall <philip tecnocode co uk>
Date:   Mon Jun 18 11:08:59 2012 +0100

    telepathy: Donât create PersonaStores for disabled accounts
    
    We shouldnât create persona stores for disabled accounts, as they just sit
    there looking lonely and empty. Persona stores should be created for enabled
    and valid accounts, and should be removed when those accounts are disabled
    or become invalid.

 backends/telepathy/tp-backend.vala |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/backends/telepathy/tp-backend.vala b/backends/telepathy/tp-backend.vala
index 9df7827..5e03949 100644
--- a/backends/telepathy/tp-backend.vala
+++ b/backends/telepathy/tp-backend.vala
@@ -164,6 +164,11 @@ public class Folks.Backends.Tp.Backend : Folks.Backend
 
   private void _account_enabled_cb (Account account)
     {
+      if (!account.enabled)
+        {
+          return;
+        }
+
       var store = Tpf.PersonaStore.dup_for_account (account);
       store.removed.connect (this._store_removed_cb);
 



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