--- a/messagingapp/msgui/unifiedviewer/src/univieweraddresswidget.cpp Wed Jun 23 18:09:17 2010 +0300
+++ b/messagingapp/msgui/unifiedviewer/src/univieweraddresswidget.cpp Tue Jul 06 14:12:40 2010 +0300
@@ -446,6 +446,16 @@
QContactPhoneNumber::DefinitionName,
QContactPhoneNumber::FieldNumber);
+ // if contact is unresolved on phone number field
+ // then, try resolving it on email address field
+ if(contactId <= 0)
+ {
+ contactId = MsgContactHandler::resolveContactDisplayName(
+ data,
+ QContactEmailAddress::DefinitionName,
+ QContactEmailAddress::FieldEmailAddress);
+ }
+
if(contactId > 0)
{
//open contact card