[telepathy-gabble/master] gabble_search_manager_foreach_channel: only list channels which are ready
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Mon Aug 24 09:02:55 PDT 2009
---
src/search-manager.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/search-manager.c b/src/search-manager.c
index 829a846..15a7428 100644
--- a/src/search-manager.c
+++ b/src/search-manager.c
@@ -261,7 +261,10 @@ gabble_search_manager_foreach_channel (TpChannelManager *manager,
g_hash_table_iter_init (&iter, self->priv->channels);
while (g_hash_table_iter_next (&iter, &chan, NULL))
{
- func (chan, user_data);
+ /* Don't list channels which are not ready as they have not been
+ * announced in NewChannels yet.*/
+ if (gabble_search_channel_is_ready (GABBLE_SEARCH_CHANNEL (chan)))
+ func (chan, user_data);
}
}
--
1.5.6.5
More information about the telepathy-commits
mailing list