diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2011-04-27 10:33:56 +0100 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2011-04-27 11:28:31 +0100 |
commit | 9fdee928e7ddc60991f659db321f1e2b258752e0 (patch) | |
tree | 159f110bdeddd50148bdd24bec39750eceffcad3 /salut/status.c | |
parent | ea6eaf850fc3c77b7e944f3556300bec9eadf9c3 (diff) |
caps-manager, status: don't bother checking for caps prefixes
This was really confusing and wrong tbh. Just leave the namespace in
everywhere.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'salut/status.c')
-rw-r--r-- | salut/status.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/salut/status.c b/salut/status.c index ace7635..ceca3f3 100644 --- a/salut/status.c +++ b/salut/status.c @@ -264,9 +264,6 @@ pep_event_cb (WockyPorter *porter, if (items == NULL || tp_strdiff (items->name, "items")) return TRUE; - if (!g_str_has_prefix (wocky_node_get_ns (items), CAPS_FEATURE_PREFIX)) - return FALSE; - item = wocky_node_get_first_child (items); if (item == NULL || tp_strdiff (item->name, "item")) return FALSE; @@ -278,7 +275,7 @@ pep_event_cb (WockyPorter *porter, /* looks good */ from = wocky_stanza_get_from (stanza); - capability = wocky_node_get_ns (items) + strlen (CAPS_FEATURE_PREFIX); + capability = wocky_node_get_ns (items); service_name = wocky_node_get_attribute (status, "from-service"); if (wocky_node_get_attribute (status, "activity") != NULL) @@ -670,7 +667,6 @@ ytst_status_advertise_status (TpYtsSvcStatus *svc, WockyNodeTree *status_tree = NULL; GError *error = NULL; WockyStanza *stanza; - gchar *node; WockyNode *item, *status_node; if (tp_str_empty (capability)) @@ -705,10 +701,8 @@ ytst_status_advertise_status (TpYtsSvcStatus *svc, wocky_node_set_attribute (status_node, "capability", capability); - node = g_strdup_printf (CAPS_FEATURE_PREFIX "%s", capability); - stanza = wocky_pubsub_make_event_stanza (node, + stanza = wocky_pubsub_make_event_stanza (capability, salut_connection_get_name (priv->connection), &item); - g_free (node); wocky_node_add_node_tree (item, status_tree); g_object_unref (status_tree); |