summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlli Salli <ollisal@gmail.com>2011-08-10 17:52:48 +0300
committerOlli Salli <ollisal@gmail.com>2011-08-10 17:52:48 +0300
commit8ca532d73b98c828b0620bd2ded172fd90a4b893 (patch)
tree7cbc9d4a2dc524d1b0d4d2898d022d2e22eba57b
parentdf2e4bd487e26bf785dbdc85fe50db7a9d35c989 (diff)
Don't advertise being able to receive tubes if we can only initiate them
-rw-r--r--src/private-tubes-factory.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/private-tubes-factory.c b/src/private-tubes-factory.c
index a95944dd..7573a1ea 100644
--- a/src/private-tubes-factory.c
+++ b/src/private-tubes-factory.c
@@ -563,6 +563,11 @@ gabble_private_tubes_factory_add_cap (GabbleCapsChannelManager *manager,
const gchar *channel_type, *service;
gchar *ns = NULL;
+ /* capabilities mean being able to RECEIVE said kinds of tubes. hence,
+ * skip Requested=true (locally initiated) channel classes */
+ if (tp_asv_get_boolean (cap, TP_IFACE_CHANNEL ".Requested", FALSE) == TRUE)
+ return;
+
channel_type = tp_asv_get_string (cap,
TP_IFACE_CHANNEL ".ChannelType");