[telepathy-gabble/master] Make SearchChannels remain closed until they're ready
Will Thompson
will.thompson at collabora.co.uk
Wed Aug 26 09:21:49 PDT 2009
---
src/search-channel.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/search-channel.c b/src/search-channel.c
index d66324c..ca1c15d 100644
--- a/src/search-channel.c
+++ b/src/search-channel.c
@@ -93,6 +93,7 @@ fake_received_search_fields (gpointer data)
{
GabbleSearchChannel *chan = data;
+ chan->base.closed = FALSE;
g_signal_emit (chan, signals[PROBED], 0, TRUE);
return FALSE;
@@ -139,6 +140,11 @@ gabble_search_channel_constructor (GType type,
base->object_path = g_strdup_printf ("%s/ContactSearchChannel%p",
conn->object_path, obj);
+ /* The channel only "opens" when it's found out that the server really does
+ * speak XEP 0055 and knows which fields are supported.
+ */
+ base->closed = TRUE;
+
request_search_fields (chan);
return obj;
--
1.5.6.5
More information about the telepathy-commits
mailing list