dbHandle->finalizeQuery();
+ MsgDeleteSentReadReportNotification(msgId);
+
/* Get SUB_TYPE, STORAGE_ID */
memset(sqlQuery, 0x00, sizeof(sqlQuery));
snprintf(sqlQuery, sizeof(sqlQuery), "SELECT MAIN_TYPE, SUB_TYPE, FOLDER_ID, STORAGE_ID, READ_STATUS, CONV_ID, SIM_INDEX \
/* delete report notification */
char tempAddr[MAX_ADDRESS_VAL_LEN+1];
+ bool isSentReadReportDeleted = false;
while (!threadList1.empty()) {
memset(tempAddr, 0x00, sizeof(tempAddr));
memset(sqlQuery, 0x00, sizeof(sqlQuery));
dbHandle->finalizeQuery();
+ int msgId = 0;
+ if (!isSentReadReportDeleted && !MsgIsSentReadReportNotificationExist(threadList1.front(), &msgId)) {
+ //delete read report sent notification
+ MsgDeleteSentReadReportNotification(msgId);
+ isSentReadReportDeleted = true;
+ }
+
threadList1.pop();
}