[Telepathy-commits] [telepathy-gabble/master] gabble_tubes_channel_presence_updated: don't announce newly create D-Bus tube using the new API for now

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Mon Jan 26 07:42:48 PST 2009


---
 src/tubes-channel.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/tubes-channel.c b/src/tubes-channel.c
index 7f72b4c..e349b3a 100644
--- a/src/tubes-channel.c
+++ b/src/tubes-channel.c
@@ -903,8 +903,13 @@ gabble_tubes_channel_presence_updated (GabbleTubesChannel *self,
               tube = create_new_tube (self, type, initiator_handle,
                   service, parameters, stream_id, tube_id, NULL);
 
-              tp_channel_manager_emit_new_channel (priv->conn->muc_factory,
-                  TP_EXPORTABLE_CHANNEL (tube), NULL);
+              if (type == TP_TUBE_TYPE_STREAM)
+                {
+                  /* FIXME: remove this test once D-Tube new API is
+                   * implemented */
+                  tp_channel_manager_emit_new_channel (priv->conn->muc_factory,
+                      TP_EXPORTABLE_CHANNEL (tube), NULL);
+                }
 
               /* the tube has reffed its initiator, no need to keep a ref */
               tp_handle_unref (contact_repo, initiator_handle);
-- 
1.5.6.5




More information about the Telepathy-commits mailing list