diff options
Diffstat (limited to 'mail/message-thread.c')
-rw-r--r-- | mail/message-thread.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mail/message-thread.c b/mail/message-thread.c index 9c0325ed21..a1abc23560 100644 --- a/mail/message-thread.c +++ b/mail/message-thread.c @@ -361,9 +361,9 @@ sort_node(const void *a, const void *b) a1 = a1->child; if (b1->message == NULL) b1 = b1->child; - if (a1->message->date_sent == b1->message->date_sent) + if (a1->order == b1->order) return 0; - if (a1->message->date_sent < b1->message->date_sent) + if (a1->order < b1->order) return 1; else return -1; @@ -429,6 +429,7 @@ thread_messages(CamelFolder *folder, GPtrArray *uids) c->message = mi; g_hash_table_insert(id_table, mi->message_id, c); } + c->order = i; container = c; ref = mi->references; p = NULL; |