memset(sqlQuery, 0x00, sizeof(sqlQuery));
- if (msgType.mainType == MSG_SMS_TYPE)
- snprintf(sqlQuery, sizeof(sqlQuery), "UPDATE %s SET FOLDER_ID = %d WHERE MSG_ID = %d;", MSGFW_MESSAGE_TABLE_NAME, destFolderId, msgId);
- else
- snprintf(sqlQuery, sizeof(sqlQuery), "UPDATE %s SET FOLDER_ID = %d WHERE MSG_ID = %d;", MSGFW_MESSAGE_TABLE_NAME, destFolderId, msgId);
+ snprintf(sqlQuery, sizeof(sqlQuery), "UPDATE %s SET FOLDER_ID = %d WHERE MSG_ID = %d;", MSGFW_MESSAGE_TABLE_NAME, destFolderId, msgId);
if (dbHandle->execQuery(sqlQuery) != MSG_SUCCESS)
return MSG_ERR_DB_EXEC;
if (g_strcmp0(signal_name, CALL_MGR_MEMBER_NAME) == 0) {
g_variant_get(parameters, "(iis)", &call_status, NULL, NULL);
MSG_INFO("callStatus = [%d]", call_status);
- if (call_status == 0)
- MsgSettingSetInt(MSG_MESSAGE_DURING_CALL, 0); //call not active
- else
- MsgSettingSetInt(MSG_MESSAGE_DURING_CALL, 1); //call active ( call_status: 2 [Ringing], call_status: 1 [In call])
+ if (call_status == 0) {
+ if (MsgSettingSetInt(MSG_MESSAGE_DURING_CALL, 0) != 0)
+ MSG_FATAL("Fail to set value \n"); //call not active
+ }
+ else {
+ if (MsgSettingSetInt(MSG_MESSAGE_DURING_CALL, 1) != 0)
+ MSG_FATAL("Fail to set value \n"); //call active ( call_status: 2 [Ringing], call_status: 1 [In call])
+ }
}
}