Workaround for Tpf.PersonaStores with no stored channels support
authorRaul Gutierrez Segales <rgs@collabora.co.uk>
Tue, 6 Sep 2011 12:05:45 +0000 (13:05 +0100)
committerRaul Gutierrez Segales <rgs@collabora.co.uk>
Tue, 6 Sep 2011 12:07:42 +0000 (13:07 +0100)
Helps: https://bugzilla.gnome.org/show_bug.cgi?id=656184

backends/telepathy/lib/tpf-persona-store.vala

index 7388975..b8b9848 100644 (file)
@@ -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;