diff options
-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); } /** |