Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
[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 565e31f2fb50a85c29c669f6f6aeaf24ecc4fab4
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/seasidecache.cpp
@@ -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);

0 comments on commit 565e31f

Please sign in to comment.