TSAM8661 issue fixed about mark read/unread api 28/91128/2 accepted/tizen/3.0/ivi/20161011.043849 accepted/tizen/3.0/mobile/20161015.033214 accepted/tizen/3.0/wearable/20161015.082718 accepted/tizen/common/20161006.153744 accepted/tizen/ivi/20161006.082316 accepted/tizen/mobile/20161006.082236 accepted/tizen/wearable/20161006.082258 submit/tizen/20161006.045559 submit/tizen_3.0_ivi/20161010.000001 submit/tizen_3.0_mobile/20161015.000002 submit/tizen_3.0_wearable/20161015.000002
authorintae, jeon <intae.jeon@samsung.com>
Thu, 6 Oct 2016 03:57:34 +0000 (12:57 +0900)
committerintae, jeon <intae.jeon@samsung.com>
Thu, 6 Oct 2016 04:21:44 +0000 (13:21 +0900)
Change-Id: Ifd20d67fdf443e2aaa6b86124cccef7fb4ee2452
Signed-off-by: intae, jeon <intae.jeon@samsung.com>
email-daemon/email-daemon-event.c
email-daemon/email-daemon-mail.c
email-daemon/main.c

index 9fb2911..068a4fa 100755 (executable)
@@ -1451,11 +1451,13 @@ static int event_handler_EMAIL_EVENT_SYNC_FLAGS_FIELD_TO_SERVER(char *multi_user
                if (!emcore_set_flags_field(multi_user_name, account_id, mail_ids, num, field_type, value, &err)) {
                        EM_DEBUG_EXCEPTION("emcore_set_flags_field failed [%d]", err);
                }
-       } else {
+       }
+#if 0
+       else {
                /* If the emcore_sync_flags_field_with_server is failed, rollback the db */
                emcore_set_flags_field(multi_user_name, account_id, mail_ids, num, field_type, value ? 0 : 1, NULL);
        }
-
+#endif
        if (error)
                *error = err;
 
index 216a175..24277e6 100755 (executable)
@@ -1328,12 +1328,12 @@ INTERNAL_FUNC int emdaemon_set_flags_field(char *multi_user_name, int account_id
                EM_DEBUG_EXCEPTION("emstorage_get_account_by_id falled [%d]", err);
                goto FINISH_OFF;
        }
-
+#if 0 /* UI display issue with read/unread sync */
        if (!emcore_set_flags_field(multi_user_name, account_id, mail_ids, num, field_type, value, &err))  {
                EM_DEBUG_EXCEPTION("emcore_set_flags_field falled [%d]", err);
                goto FINISH_OFF;
        }
-
+#endif
        if (onserver && account_tbl->incoming_server_type == EMAIL_SERVER_TYPE_IMAP4) {
                event_data = em_malloc(sizeof(email_event_t));
                if (event_data == NULL) {
index b931b64..ec8408c 100755 (executable)
@@ -1430,6 +1430,10 @@ void stb_set_flags_field(HIPC_API a_hAPI)
     int nAPPID = emipc_get_app_id(a_hAPI);
     char *multi_user_name = NULL;
 
+    if (!emnetwork_check_network_status(&err)) {
+       EM_DEBUG_EXCEPTION("Network failed [%d]", err);
+       goto FINISH_OFF;
+    }
     if ((err = emcore_get_user_name(nAPPID, &multi_user_name)) != EMAIL_ERROR_NONE) {
         EM_DEBUG_EXCEPTION("emcore_get_user_info failed : [%d]", err);
         multi_user_name = NULL;