summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Laban <david.laban@collabora.co.uk>2010-12-03 18:54:36 +0000
committerDavid Laban <david.laban@collabora.co.uk>2011-01-26 17:16:33 +0000
commit85b5c6a95151c73fbd8a62fd541cadbbc81bf32a (patch)
treedd94f9371bb9e87f39fcf556279b04b8429d774a
parenta9f18ec9ffe748c2078886cbc51c28babc3ce944 (diff)
implement tpsip_media_channel_get_handle() properly.
-rw-r--r--src/sip-media-channel.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/sip-media-channel.c b/src/sip-media-channel.c
index 8f896ed..5cec002 100644
--- a/src/sip-media-channel.c
+++ b/src/sip-media-channel.c
@@ -747,7 +747,14 @@ static void
tpsip_media_channel_get_handle (TpSvcChannel *iface,
DBusGMethodInvocation *context)
{
- tp_svc_channel_return_from_get_handle (context, 0, 0);
+ TpsipMediaChannel *self = TPSIP_MEDIA_CHANNEL (iface);
+ TpsipMediaChannelPrivate *priv = TPSIP_MEDIA_CHANNEL_GET_PRIVATE (self);
+
+ if (priv->handle != 0)
+ tp_svc_channel_return_from_get_handle (context, TP_HANDLE_TYPE_CONTACT,
+ priv->handle);
+ else
+ tp_svc_channel_return_from_get_handle (context, TP_HANDLE_TYPE_NONE, 0);
}
/**