[telepathy-gabble/master] extended search results contain a title node
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Wed Aug 26 09:22:11 PDT 2009
---
src/search-channel.c | 6 ++++--
tests/twisted/search/search_helper.py | 2 ++
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/search-channel.c b/src/search-channel.c
index ab1ae14..6d9c1cd 100644
--- a/src/search-channel.c
+++ b/src/search-channel.c
@@ -796,9 +796,11 @@ parse_extended_search_results (GabbleSearchChannel *chan,
else if (!tp_strdiff (item->name, "reported"))
/* Ignore <reported> node */
continue;
+ else if (!tp_strdiff (item->name, "title"))
+ DEBUG ("title: %s", lm_message_node_get_value (item));
else
- DEBUG ("found <%s/> in <x/> rather than <item/> and <reported/>, "
- "skipping", item->name);
+ DEBUG ("found <%s/> in <x/> rather than <item/>, <title/> and "
+ "<reported/>, skipping", item->name);
}
return TRUE;
diff --git a/tests/twisted/search/search_helper.py b/tests/twisted/search/search_helper.py
index 88c7e04..dbcee8e 100644
--- a/tests/twisted/search/search_helper.py
+++ b/tests/twisted/search/search_helper.py
@@ -110,6 +110,8 @@ def send_results_extended(stream, iq, results, fields):
x = query.addElement((ns.X_DATA, 'x'))
x['type'] = 'result'
+ x.addElement('title', content='Search result')
+
# add reported fields
reported = x.addElement('reported')
for var, type, label, options in fields:
--
1.5.6.5
More information about the telepathy-commits
mailing list