[Telepathy-commits] [telepathy-salut/master] Ugly hack to test caps txt records

Alban Crequy alban.crequy at collabora.co.uk
Thu Feb 26 11:20:03 PST 2009


---
 src/salut-connection.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/salut-connection.c b/src/salut-connection.c
index fbd81f0..14b69ed 100644
--- a/src/salut-connection.c
+++ b/src/salut-connection.c
@@ -595,6 +595,16 @@ set_own_status (GObject *obj,
             err->message);
     }
 
+  /* HACK HACK!: for testing, the user can set the presence to avail/buzy to
+   * change the caps! */
+  ret = salut_self_set_caps (priv->self, "thenode", "thehash",
+      presence == SALUT_PRESENCE_AVAILABLE ? "ver_avail":"ver_notavail",
+      &err);
+  if (! ret)
+    {
+      g_set_error (error, TP_ERRORS, TP_ERROR_NETWORK_ERROR, err->message);
+    }
+
   return TRUE;
 }
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list