Commit 565e31f2 authored by mvogt's avatar mvogt

[libcontacts] Report invalid addresses as unknown. Contributes to MER#1260

An invalid address should result in a resolution-to-no-contact event.
parent 5c5a04e2
......@@ -1005,6 +1005,14 @@ SeasideCache::CacheItem *SeasideCache::resolvePhoneNumber(ResolveListener *liste
const QString normalized(normalizePhoneNumber(number));
if (!normalized.isEmpty()) {
instancePtr->resolveAddress(listener, QString(), number, requireComplete);
} else {
// Report this address is unknown
ResolveData data;
data.second = number;
data.listener = listener;
} else if (requireComplete) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment