X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fthread.cc;fp=lib%2Fthread.cc;h=a0ce4be3cd46067ce067681245abe306d9a94837;hp=6d15c49b761b2fc81e36a1f2adfd8e6c07dff4e7;hb=dc3cc18bf0c649dfdb280a7afbb3b6039101f281;hpb=040fd630bf74eb8be75633bf3cbdb0c38d0f16f2 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,