Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
Merge pull request #106 from matthewvogt/mer-1260
Browse files Browse the repository at this point in the history
[libcontacts] Report invalid addresses as unknown. Contributes to MER#1260
  • Loading branch information
matthewvogt committed Aug 25, 2015
2 parents 4a840d9 + 565e31f commit 33220e2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/seasidecache.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 33220e2

Please sign in to comment.