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

Commit

Permalink
Browse files Browse the repository at this point in the history
[libcontacts] Report invalid addresses as unknown. Contributes to MER…
…#1260

An invalid address should result in a resolution-to-no-contact event.
  • Loading branch information
matthewvogt committed Aug 24, 2015
1 parent 5c5a04e commit 565e31f
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 565e31f

Please sign in to comment.