msgIds[0] = msgInfo.msgId;
msgIdList.msgIdList = msgIds;
- err = MsgStoGetAddrInfo(msgInfo.msgId, &(msgInfo.addressList[0]));
+ //err = MsgStoGetAddrInfo(msgInfo.msgId, &(msgInfo.addressList[0]));
+ err = MsgStoGetOrgAddressList(&msgInfo);
if (err == MSG_SUCCESS) {
- MSG_DEBUG("MmsStoGetAddrInfo() success.");
- msgInfo.nAddressCnt = 1;
+ MSG_DEBUG("MsgStoGetOrgAddressList() success.");
+// msgInfo.nAddressCnt = 1;
} else {
- MSG_DEBUG("MmsStoGetAddrInfo() fail.");
+ MSG_DEBUG("MsgStoGetOrgAddressList() fail.");
}
if(msgInfo.msgType.subType == MSG_RETRIEVE_AUTOCONF_MMS || msgInfo.msgType.subType == MSG_RETRIEVE_MANUALCONF_MMS) {
ret = contacts_record_get_child_record_at_p(contact, _contacts_contact.name, 0, &name);
if (ret != CONTACTS_ERROR_NONE) {
MSG_DEBUG("contacts_record_get_child_record_at_p() Error [%d]", ret);
- contacts_record_destroy(contact, true);
- return MSG_SUCCESS;
- }
-
- char* strFirstName = NULL;
- ret = contacts_record_get_str_p(name, _contacts_name.first, &strFirstName);
- if (ret != CONTACTS_ERROR_NONE) {
- MSG_DEBUG("contacts_record_get_str_p() Error [%d]", ret);
- contacts_record_destroy(contact, true);
- return MSG_SUCCESS;
- }
+ } else {
+ char* strFirstName = NULL;
+ ret = contacts_record_get_str_p(name, _contacts_name.first, &strFirstName);
+ if (ret != CONTACTS_ERROR_NONE) {
+ MSG_DEBUG("contacts_record_get_str_p() Error [%d]", ret);
+ }
- char* strLastName = NULL;
- ret = contacts_record_get_str_p(name, _contacts_name.last, &strLastName);
- if (ret != CONTACTS_ERROR_NONE) {
- MSG_DEBUG("contacts_record_get_str_p() Error [%d]", ret);
- contacts_record_destroy(contact, true);
- return MSG_SUCCESS;
- }
+ char* strLastName = NULL;
+ ret = contacts_record_get_str_p(name, _contacts_name.last, &strLastName);
+ if (ret != CONTACTS_ERROR_NONE) {
+ MSG_DEBUG("contacts_record_get_str_p() Error [%d]", ret);
+ }
- MSG_DEBUG("First Name : [%s], Last Name : [%s]", strFirstName, strLastName);
+ if (strFirstName != NULL)
+ strncpy(pContactInfo->firstName, strFirstName, MAX_DISPLAY_NAME_LEN);
- if (strFirstName != NULL)
- strncpy(pContactInfo->firstName, strFirstName, MAX_DISPLAY_NAME_LEN);
+ if (strLastName != NULL)
+ strncpy(pContactInfo->lastName, strLastName, MAX_DISPLAY_NAME_LEN);
+ }
- if (strLastName != NULL)
- strncpy(pContactInfo->lastName, strLastName, MAX_DISPLAY_NAME_LEN);
+ MSG_DEBUG("pContactInfo->firstName : [%s], pContactInfo->lastName : [%s]", pContactInfo->firstName, pContactInfo->lastName);
ret = contacts_record_get_int(contact, _contacts_contact.id, (int*)&pContactInfo->contactId);
if (ret != CONTACTS_ERROR_NONE) {