From 44d3b4bbb07e671f2d265c9ac22fafe50166e4e9 Mon Sep 17 00:00:00 2001 From: Rafal Michalski Date: Mon, 28 Feb 2011 14:53:43 +0100 Subject: [PATCH] obexd: Adjust prefix of contact id for getting pb size Getting phonebook size is related to recognizing contacts by their id prefixes. Previously it was "contact: " and has been changed to "urn:uuid:". This patch fixes it and allows to get valid phonebook size. --- obexd/plugins/phonebook-tracker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obexd/plugins/phonebook-tracker.c b/obexd/plugins/phonebook-tracker.c index e71ec7be1..2fced7a99 100644 --- a/obexd/plugins/phonebook-tracker.c +++ b/obexd/plugins/phonebook-tracker.c @@ -809,7 +809,7 @@ "SELECT COUNT(?c) " \ "WHERE {" \ "?c a nco:PersonContact ." \ - "FILTER (regex(str(?c), \"contact:\"))" \ + "FILTER (regex(str(?c), \"urn:uuid:\"))" \ "}" #define MISSED_CALLS_COUNT_QUERY \ -- 2.47.3