[folks] Don't warn if the 'stored' channel doesn't exist.



commit 24e75a2eac7299692a2981cadea33ff5fc3385bf
Author: Travis Reitter <travis reitter collabora co uk>
Date:   Mon Aug 9 16:32:10 2010 -0700

    Don't warn if the 'stored' channel doesn't exist.

 backends/telepathy/tpf-persona-store.vala |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/backends/telepathy/tpf-persona-store.vala b/backends/telepathy/tpf-persona-store.vala
index 4391154..db66021 100644
--- a/backends/telepathy/tpf-persona-store.vala
+++ b/backends/telepathy/tpf-persona-store.vala
@@ -829,7 +829,9 @@ public class Tpf.PersonaStore : Folks.PersonaStore
         }
       catch (GLib.Error e)
         {
-          warning ("failed to add channel '%s': %s\n", name, e.message);
+          /* the 'stored' channel doesn't always exist for the CM */
+          if (name != "stored")
+            warning ("failed to add channel '%s': %s\n", name, e.message);
 
           /* XXX: assuming there's no decent way to recover from this */
 



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