[Telepathy-commits] [telepathy-salut/master] ImManager: don't satisfy requests with extra properties
Will Thompson
will.thompson at collabora.co.uk
Thu Oct 23 07:30:39 PDT 2008
---
src/salut-im-manager.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/salut-im-manager.c b/src/salut-im-manager.c
index 45da3d9..16f244e 100644
--- a/src/salut-im-manager.c
+++ b/src/salut-im-manager.c
@@ -304,6 +304,10 @@ salut_im_manager_requestotron (SalutImManager *self,
if (!tp_handle_is_valid (contact_repo, handle, &error))
goto error;
+ /* Check if there are any other properties that we don't understand */
+ if (g_hash_table_size (request_properties) > 3)
+ return FALSE;
+
/* Don't support opening a channel to our self handle */
if (handle == base_conn->self_handle)
{
@@ -312,8 +316,6 @@ salut_im_manager_requestotron (SalutImManager *self,
goto error;
}
- /* TODO: fail if there are any other properties. */
-
channel = g_hash_table_lookup (priv->channels, GUINT_TO_POINTER (handle));
if (channel == NULL)
--
1.5.6.5
More information about the Telepathy-commits
mailing list