diff options
author | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-04-17 12:35:21 +0200 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-04-17 12:38:14 +0200 |
commit | dc9ec1cd1f8abe7b298a6871959daeb9c47d94e3 (patch) | |
tree | 6c5e02d64b95809ee93387ffc065331d2614c4ed | |
parent | ded205c7dd94ee87c03e5fc55e7955a6c2b570d9 (diff) |
Add a comment explaining why _supports_contact_search() does not require THT prop
-rw-r--r-- | telepathy-glib/capabilities.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/telepathy-glib/capabilities.c b/telepathy-glib/capabilities.c index c071bdf0b..34c797258 100644 --- a/telepathy-glib/capabilities.c +++ b/telepathy-glib/capabilities.c @@ -734,11 +734,13 @@ tp_capabilities_supports_contact_search (TpCapabilities *self, tp_value_array_unpack (arr, 2, &fixed, &allowed_properties); + /* ContactSearch channel should have ChannelType and TargetHandleType=NONE + * but CM implementations are wrong and omitted TargetHandleType, + * so it's set in stone now. */ if (g_hash_table_size (fixed) != 1) continue; chan_type = tp_asv_get_string (fixed, TP_PROP_CHANNEL_CHANNEL_TYPE); - if (tp_strdiff (chan_type, TP_IFACE_CHANNEL_TYPE_CONTACT_SEARCH)) continue; |