From 5ecb253be2a30f7bbde601aeed65f75acb7476ae Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 25 Feb 2014 15:20:13 +0100 Subject: account-channel-request: set TargetHandleType: TP_HANDLE_TYPE_NONE if needed --- telepathy-glib/account-channel-request.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'telepathy-glib') diff --git a/telepathy-glib/account-channel-request.c b/telepathy-glib/account-channel-request.c index fe9954d67..da71b8741 100644 --- a/telepathy-glib/account-channel-request.c +++ b/telepathy-glib/account-channel-request.c @@ -1026,6 +1026,16 @@ going_to_request (TpAccountChannelRequest *self, self->priv->ensure = ensure; + /* Set TargetHandleType: TP_HANDLE_TYPE_NONE if no TargetHandleType has been + * defined. */ + if (g_hash_table_lookup (self->priv->request, + TP_PROP_CHANNEL_TARGET_HANDLE_TYPE) == NULL) + { + g_hash_table_insert (self->priv->request, + g_strdup (TP_PROP_CHANNEL_TARGET_HANDLE_TYPE), + tp_g_value_slice_new_uint (TP_HANDLE_TYPE_NONE)); + } + return TRUE; } -- cgit v1.2.1