summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2011-09-07 15:06:17 +0100
committerJonny Lamb <jonny.lamb@collabora.co.uk>2011-09-07 15:50:51 +0100
commit166546dc5e4e920727f6e6146fe862d4cc935cac (patch)
treeaec4a4a31a059c9cce9d6370daa3aaedeb707f49 /src/util.c
parent7188bde6e6e1c81617c89db6a1fd7be727653e4a (diff)
downloadtelepathy-salut-166546dc5e4e920727f6e6146fe862d4cc935cac.tar.gz
util: fix send_ll_pep_event to get the node properly
This is following a fix in Wocky to put the node name in the correct attribute. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c
index 8b8f454c..39d0e452 100644
--- a/src/util.c
+++ b/src/util.c
@@ -344,6 +344,7 @@ salut_send_ll_pep_event (WockySession *session,
WockyLLContact *self_contact;
GList *contacts, *l;
WockyNode *message, *event, *items;
+ const gchar *pep_node;
gchar *node;
g_return_if_fail (WOCKY_IS_SESSION (session));
@@ -353,10 +354,12 @@ salut_send_ll_pep_event (WockySession *session,
event = wocky_node_get_first_child (message);
items = wocky_node_get_first_child (event);
- if (wocky_node_get_ns (items) == NULL)
+ pep_node = wocky_node_get_attribute (items, "node");
+
+ if (pep_node == NULL)
return;
- node = g_strdup_printf ("%s+notify", wocky_node_get_ns (items));
+ node = g_strdup_printf ("%s+notify", pep_node);
contact_factory = wocky_session_get_contact_factory (session);
porter = wocky_session_get_porter (session);