aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/thread.cc
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-04-22 14:00:33 -0700
committerGravatar Carl Worth <cworth@cworth.org>2010-04-22 14:00:33 -0700
commita1099660806a29b883e2210669e385648465f169 (patch)
tree18755f79b7eb9808cbfc67c62ebcba3fcdc8f422 /lib/thread.cc
parent6a0cba4ae0f73676902cb076514d5fd99bad8909 (diff)
Revert "thread: Fix sort of search when constructing threads."
Diffstat (limited to 'lib/thread.cc')
-rw-r--r--lib/thread.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/thread.cc b/lib/thread.cc
index 1b6feab2..9b37143d 100644
--- a/lib/thread.cc
+++ b/lib/thread.cc
@@ -299,7 +299,7 @@ _notmuch_thread_create (void *ctx,
thread->oldest = 0;
thread->newest = 0;
- notmuch_query_set_sort (thread_id_query, sort);
+ notmuch_query_set_sort (thread_id_query, NOTMUCH_SORT_OLDEST_FIRST);
for (messages = notmuch_query_search_messages (thread_id_query);
notmuch_messages_valid (messages);
@@ -332,8 +332,6 @@ _notmuch_thread_create (void *ctx,
if (unlikely (matched_query == NULL))
return NULL;
- notmuch_query_set_sort (matched_query, sort);
-
for (messages = notmuch_query_search_messages (matched_query);
notmuch_messages_valid (messages);
notmuch_messages_move_to_next (messages))