From b2b70a390d067a9022e0c1d19a8f433f627d556d Mon Sep 17 00:00:00 2001 From: Keebum Kim Date: Fri, 19 Jul 2013 10:41:24 +0900 Subject: [PATCH] Fix to refresh notification on move to folder API. Change-Id: I18fa54ad51279006295202f688ff1e3f31d738c4 --- framework/storage-handler/MsgStorageMessage.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/framework/storage-handler/MsgStorageMessage.cpp b/framework/storage-handler/MsgStorageMessage.cpp index e665654..8721b3d 100755 --- a/framework/storage-handler/MsgStorageMessage.cpp +++ b/framework/storage-handler/MsgStorageMessage.cpp @@ -1389,6 +1389,19 @@ msg_error_t MsgStoMoveMessageToFolder(msg_message_id_t msgId, msg_folder_id_t de /* update conversation table */ err = MsgStoUpdateConversation(&dbHandle, convId); + + if (destFolderId == MSG_INBOX_ID) { + int smsCnt = 0; + int mmsCnt = 0; + + smsCnt = MsgStoGetUnreadCnt(&dbHandle, MSG_SMS_TYPE); + mmsCnt = MsgStoGetUnreadCnt(&dbHandle, MSG_MMS_TYPE); + + MsgSettingSetIndicator(smsCnt, mmsCnt); + + MsgRefreshNoti(false); + } + return err; } -- 2.7.4