mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
lib: remove use of notmuch_query_search_messages from query.cc
There is not too much point in worrying about the bad error reporting here, because the count api is due for the same deprecation.
This commit is contained in:
parent
005c2f0df1
commit
f16944c3b4
1 changed files with 5 additions and 1 deletions
|
@ -618,10 +618,14 @@ notmuch_query_count_threads (notmuch_query_t *query)
|
|||
GHashTable *hash;
|
||||
unsigned int count;
|
||||
notmuch_sort_t sort;
|
||||
notmuch_status_t status;
|
||||
|
||||
sort = query->sort;
|
||||
query->sort = NOTMUCH_SORT_UNSORTED;
|
||||
messages = notmuch_query_search_messages (query);
|
||||
status = notmuch_query_search_messages_st (query, &messages);
|
||||
if (status)
|
||||
return 0;
|
||||
|
||||
query->sort = sort;
|
||||
if (messages == NULL)
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue