[folks] Workaround for Tpf.PersonaStores with no stored channels support



commit eff9dfdbd8f82167764a2064d0c4731c2cb678b7
Author: Raul Gutierrez Segales <rgs collabora co uk>
Date:   Tue Sep 6 13:05:45 2011 +0100

    Workaround for Tpf.PersonaStores with no stored channels support
    
    Helps: https://bugzilla.gnome.org/show_bug.cgi?id=656184

 backends/telepathy/lib/tpf-persona-store.vala |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/backends/telepathy/lib/tpf-persona-store.vala b/backends/telepathy/lib/tpf-persona-store.vala
index 7388975..b8b9848 100644
--- a/backends/telepathy/lib/tpf-persona-store.vala
+++ b/backends/telepathy/lib/tpf-persona-store.vala
@@ -1706,6 +1706,16 @@ public class Tpf.PersonaStore : Folks.PersonaStore
         {
           debug ("Failed to add channel '%s': %s\n", name, e.message);
 
+          /* If the Connection doesn't support 'stored' channels we
+           * pretend we've received the stored channel members.
+           *
+           * When this happens it probably means the ConnectionManager doesn't
+           * implement the Channel.Type.ContactList interface.
+           *
+           * See: https://bugzilla.gnome.org/show_bug.cgi?id=656184 */
+           this._got_stored_channel_members = true;
+           this._notify_if_is_quiescent ();
+
           /* XXX: assuming there's no decent way to recover from this */
 
           return null;



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