cannot read draft mail because of error of sorting events with priority(TSAM_10281) 29/100929/5
authorintae, jeon <intae.jeon@samsung.com>
Wed, 30 Nov 2016 00:50:28 +0000 (09:50 +0900)
committerintae, jeon <intae.jeon@samsung.com>
Thu, 1 Dec 2016 02:32:51 +0000 (11:32 +0900)
Change-Id: Ic5d5add678ff366a3c1719e5e9ab678bfdf2d452
Signed-off-by: intae, jeon <intae.jeon@samsung.com>
email-core/email-core-event.c

index 699443c..67bf84e 100755 (executable)
@@ -1694,7 +1694,8 @@ static void emcore_adjust_sync_mail_flag_event_priority()
        // find sync flag event.
        for (i = 0; i < q_length; i++) {
                email_event_t *p = g_queue_peek_nth(g_event_que, i);
-               if (p->type == EMAIL_EVENT_SYNC_FLAGS_FIELD_TO_SERVER) {
+               // working element is index = 0, except working element
+               if (p->type == EMAIL_EVENT_SYNC_FLAGS_FIELD_TO_SERVER && i > 0) {
                        sync_flag_event_list = g_list_append(sync_flag_event_list, p);
                }
        }