fix coding convention 32/106832/2
authorKyeonghun Lee <kh9090.lee@samsung.com>
Fri, 23 Dec 2016 07:34:07 +0000 (16:34 +0900)
committerKyeonghun Lee <kh9090.lee@samsung.com>
Fri, 23 Dec 2016 08:19:57 +0000 (17:19 +0900)
Change-Id: I46695881179e8d6472116212cb082b0186651d23
Signed-off-by: Kyeonghun Lee <kh9090.lee@samsung.com>
framework/storage-handler/MsgStorageMessage.cpp
framework/submit-handler/MsgSubmitHandler.cpp
framework/transaction-manager/MsgCmdHandlerTransport.cpp

index 436b86c..71498da 100755 (executable)
@@ -1017,10 +1017,12 @@ msg_error_t MsgStoDeleteMessage(msg_message_id_t msgId, bool bCheckIndication)
        dbHandle->endTrans(true);
 
        /* Update Thread Callback */
-       if (bCheckIndication == true && MsgExistConversation(dbHandle, convId) == true && MsgExistInThreadViewList(dbHandle, convId) == true)
-               MsgTransactionManager::instance()->broadcastThreadChangeCB(MSG_SUCCESS, MSG_STORAGE_CHANGE_UPDATE, convId);
-       else if (bCheckIndication == true)
-               MsgTransactionManager::instance()->broadcastThreadChangeCB(MSG_SUCCESS, MSG_STORAGE_CHANGE_DELETE, convId);
+       if (bCheckIndication == true) {
+               if (MsgExistConversation(dbHandle, convId) == true && MsgExistInThreadViewList(dbHandle, convId) == true)
+                       MsgTransactionManager::instance()->broadcastThreadChangeCB(MSG_SUCCESS, MSG_STORAGE_CHANGE_UPDATE, convId);
+               else
+                       MsgTransactionManager::instance()->broadcastThreadChangeCB(MSG_SUCCESS, MSG_STORAGE_CHANGE_DELETE, convId);
+       }
 
        if (msgType.mainType == MSG_SMS_TYPE && folderId == MSG_INBOX_ID) {
                msgType.classType = MSG_CLASS_NONE;
index aba0c2d..1f48ce8 100755 (executable)
@@ -289,7 +289,7 @@ msg_error_t MsgSubmitReqMMS(MSG_REQUEST_INFO_S *pReqInfo)
                MsgStoSetReadReportSendStatus(pReqInfo->msgInfo.msgId, MMS_RECEIVE_READ_REPORT_SENT);
 
        if (err != MSG_SUCCESS) {
-               if(pReqInfo->msgInfo.msgType.subType == MSG_RETRIEVE_MMS )
+               if(pReqInfo->msgInfo.msgType.subType == MSG_RETRIEVE_MMS)
                        MsgStoUpdateNetworkStatus(dbHandle, &(pReqInfo->msgInfo), MSG_NETWORK_RETRIEVE_FAIL);
                else
                        MsgStoUpdateNetworkStatus(dbHandle, &(pReqInfo->msgInfo), MSG_NETWORK_SEND_FAIL);
index 9f5da09..90ffdc0 100755 (executable)
@@ -128,9 +128,9 @@ int MsgSubmitReqHandler(const MSG_CMD_S *pCmd, char **ppEvent)
                tm->setJavaMMSList(&trId);
        }
 
-               ret[0] = reqId;
-               ret[1] = reqInfo.msgInfo.msgId;
-               ret[2] = reqInfo.msgInfo.threadId;
+       ret[0] = reqId;
+       ret[1] = reqInfo.msgInfo.msgId;
+       ret[2] = reqInfo.msgInfo.threadId;
 
        /* Make Event Data */
        eventSize = MsgMakeEvent(ret, sizeof(ret), MSG_EVENT_SUBMIT_REQ, err, (void**)ppEvent);