[TNEXT-639] block codes related with group message feature 36/132936/1 accepted/tizen/unified/20170609.204001 submit/tizen/20170609.034651
authorKyeonghun Lee <kh9090.lee@samsung.com>
Thu, 8 Jun 2017 10:03:30 +0000 (19:03 +0900)
committerKyeonghun Lee <kh9090.lee@samsung.com>
Thu, 8 Jun 2017 10:03:38 +0000 (19:03 +0900)
Change-Id: Ica32c4b2e342a245963137270a10769e1d57f7db
Signed-off-by: Kyeonghun Lee <kh9090.lee@samsung.com>
framework/storage-handler/MsgStorageMessage.cpp
plugin/mms_plugin/MmsPluginInternal.cpp

index e5e9ce4..9864e58 100755 (executable)
@@ -2157,6 +2157,7 @@ msg_error_t MsgStoGetMessage(msg_message_id_t msgId, MSG_MESSAGE_INFO_S *pMsg, M
 
        dbHandle->finalizeQuery();
 
+#if 0 /* This block will be activated after find way to get own number with any SIMs */
        if (pMsg->msgType.mainType == MSG_MMS_TYPE && pMsg->networkStatus == MSG_NETWORK_RETRIEVE_SUCCESS) {
                /* get recipients information. */
                MsgStoGetRecipientsByMsgId(dbHandle, pMsg->msgId, &pMsg->nAddressCnt, &pMsg->addressList);
@@ -2164,7 +2165,10 @@ msg_error_t MsgStoGetMessage(msg_message_id_t msgId, MSG_MESSAGE_INFO_S *pMsg, M
                /* get address information. */
                MsgStoGetAddressByMsgId(dbHandle, pMsg->msgId, &pMsg->nAddressCnt, &pMsg->addressList);
        }
-
+#else
+       /* get address information. */
+       MsgStoGetAddressByMsgId(dbHandle, pMsg->msgId, &pMsg->nAddressCnt, &pMsg->addressList);
+#endif
        /* Get MMS body if it is MMS. */
        if ((pMsg->networkStatus == MSG_NETWORK_RETRIEVE_SUCCESS &&
                        (pMsg->msgType.subType == MSG_RETRIEVE_MMS || pMsg->msgType.subType == MSG_RETRIEVE_AUTOCONF_MMS || pMsg->msgType.subType == MSG_RETRIEVE_MANUALCONF_MMS)) ||
index 95ed6a1..f50d68d 100755 (executable)
@@ -626,7 +626,7 @@ void MmsPluginInternal::processRetrieveConf(MSG_MESSAGE_INFO_S *pMsgInfo, mmsTra
                addr_cnt++;
                iter = iter->pNext;
        }
-
+#if 0 /* This block will be activated after find way to get own number with any SIMs */
        iter = mmsHeader.pTo;
        while (iter) {
                MmsAddrUtilRemovePlmnString(iter->szAddr);
@@ -644,7 +644,7 @@ void MmsPluginInternal::processRetrieveConf(MSG_MESSAGE_INFO_S *pMsgInfo, mmsTra
                        addr_cnt++;
                iter = iter->pNext;
        }
-
+#endif
        MSG_ADDRESS_INFO_S *recipients_addr_info = NULL;
        if (recipients_cnt > 0) {
                recipients_addr_info = (MSG_ADDRESS_INFO_S *)new char[sizeof(MSG_ADDRESS_INFO_S)*recipients_cnt];
@@ -667,7 +667,7 @@ void MmsPluginInternal::processRetrieveConf(MSG_MESSAGE_INFO_S *pMsgInfo, mmsTra
                        __fillAddressInfo(&(pMsgInfo->addressList[0]), mmsHeader.pFrom->szAddr, MSG_RECIPIENTS_TYPE_UNKNOWN);
                        __fillAddressInfo(&recipients_addr_info[0], mmsHeader.pFrom->szAddr, MSG_RECIPIENTS_TYPE_UNKNOWN);
                }
-
+#if 0 /* This block will be activated after find way to get own number with any SIMs */
                int addr_idx = 0;
                int recipients_idx = 0;
                if (mmsHeader.pTo) {
@@ -697,6 +697,7 @@ void MmsPluginInternal::processRetrieveConf(MSG_MESSAGE_INFO_S *pMsgInfo, mmsTra
                                iter = iter->pNext;
                        }
                }
+#endif
        }
 
        MSG_SEC_DEBUG("%d, MMS Receive %s End %s->%s %s", pMsgInfo->msgId