Skip to contentSkip to conversation

Adjust prefix of contact id for getting pb size

PATCH In review Rafal Michalski 2 participants 2 messages Feb 28, 2011 – Mar 8, 2011 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 plugins/phonebook-tracker.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
plugins/phonebook-tracker.c +1 -1
index b204493..99848e3 100644
@@ -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					\
Signature · 1 line
1.6.3.3
#1 lore raw

Hi Rafal,

Quoted 6 lines · Rafal Michalski

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.

---
 plugins/phonebook-tracker.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

I seem to have missed this one. It's now pushed upstream.

Johan