diff options
author | David Laban <david.laban@collabora.co.uk> | 2010-12-03 18:54:36 +0000 |
---|---|---|
committer | David Laban <david.laban@collabora.co.uk> | 2011-01-26 17:16:33 +0000 |
commit | 85b5c6a95151c73fbd8a62fd541cadbbc81bf32a (patch) | |
tree | dd94f9371bb9e87f39fcf556279b04b8429d774a /src | |
parent | a9f18ec9ffe748c2078886cbc51c28babc3ce944 (diff) |
implement tpsip_media_channel_get_handle() properly.
Diffstat (limited to 'src')
-rw-r--r-- | src/sip-media-channel.c | 9 |
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); } /** |