Commit 33220e23 authored by mvogt's avatar mvogt

Merge pull request #106 from matthewvogt/mer-1260

[libcontacts] Report invalid addresses as unknown. Contributes to MER#1260
parents 4a840d99 565e31f2
......@@ -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;
instancePtr->m_unknownResolveAddresses.append(data);
instancePtr->requestUpdate();
}
} else if (requireComplete) {
ensureCompletion(item);
......
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