aboutsummaryrefslogtreecommitdiff
path: root/lib/thread.cc
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2018-09-03 18:02:25 -0300
committerDavid Bremner <david@tethera.net>2018-09-06 08:07:13 -0300
commitdc3cc18bf0c649dfdb280a7afbb3b6039101f281 (patch)
treeda01c70956c774f4f617e4dddf2c33691b7fe1be /lib/thread.cc
parent040fd630bf74eb8be75633bf3cbdb0c38d0f16f2 (diff)
lib: add _notmuch_message_list_empty
There is no public notmuch_message_list_t public interface, so to this is added to the private API. We use it immediately in thread.cc; future commits will use it further.
Diffstat (limited to 'lib/thread.cc')
-rw-r--r--lib/thread.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/thread.cc b/lib/thread.cc
index 6d15c49b..a0ce4be3 100644
--- a/lib/thread.cc
+++ b/lib/thread.cc
@@ -425,7 +425,7 @@ _resolve_thread_relationships (notmuch_thread_t *thread)
if (first_node) {
message = first_node->message;
in_reply_to = _notmuch_message_get_in_reply_to (message);
- if (thread->toplevel_list->head &&
+ if (! _notmuch_message_list_empty (thread->toplevel_list) &&
in_reply_to && strlen (in_reply_to) &&
g_hash_table_lookup_extended (thread->message_hash,
in_reply_to, NULL,