[Telepathy-commits] [telepathy-glib/master] Omit TargetHandle:0 when calling channel_manager_request_channel
Will Thompson
will.thompson at collabora.co.uk
Tue Sep 16 03:59:57 PDT 2008
---
telepathy-glib/base-connection.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/telepathy-glib/base-connection.c b/telepathy-glib/base-connection.c
index 0ec0ce2..2a32b6d 100644
--- a/telepathy-glib/base-connection.c
+++ b/telepathy-glib/base-connection.c
@@ -1822,10 +1822,13 @@ tp_base_connection_request_channel (TpSvcConnection *iface,
g_hash_table_insert (request_properties,
TP_IFACE_CHANNEL ".TargetHandleType", v);
- v = tp_g_value_slice_new (G_TYPE_UINT);
- g_value_set_uint (v, handle);
- g_hash_table_insert (request_properties,
- TP_IFACE_CHANNEL ".TargetHandle", v);
+ if (handle != 0)
+ {
+ v = tp_g_value_slice_new (G_TYPE_UINT);
+ g_value_set_uint (v, handle);
+ g_hash_table_insert (request_properties,
+ TP_IFACE_CHANNEL ".TargetHandle", v);
+ }
for (i = 0; i < priv->channel_managers->len; i++)
{
--
1.5.6.5
More information about the Telepathy-commits
mailing list