mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 19:08:09 +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;
|
GHashTable *hash;
|
||||||
unsigned int count;
|
unsigned int count;
|
||||||
notmuch_sort_t sort;
|
notmuch_sort_t sort;
|
||||||
|
notmuch_status_t status;
|
||||||
|
|
||||||
sort = query->sort;
|
sort = query->sort;
|
||||||
query->sort = NOTMUCH_SORT_UNSORTED;
|
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;
|
query->sort = sort;
|
||||||
if (messages == NULL)
|
if (messages == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue