aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/message.cc
diff options
context:
space:
mode:
authorGravatar Austin Clements <amdragon@MIT.EDU>2012-11-24 23:57:03 -0500
committerGravatar David Bremner <bremner@debian.org>2013-02-18 20:20:24 -0400
commit5394924e6cf8f4758fdfb748b8b28b7ef9165ce7 (patch)
treeea14351f3d4d9e192624f2e81f560e68398f7020 /lib/message.cc
parent086dab4333623f38a8813643f42eee4ac31aa7f5 (diff)
lib: Separate list of all messages from top-level messages
Previously, thread.cc built up a list of all messages, then proceeded to tear it apart to transform it into a list of top-level messages. Now we simply build a new list of top-level messages. This simplifies the interface to _notmuch_message_add_reply, eliminates the pointer acrobatics from _resolve_thread_relationships, and will enable us to do things with the list of all messages in the following patches.
Diffstat (limited to 'lib/message.cc')
-rw-r--r--lib/message.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/message.cc b/lib/message.cc
index 320901f7..8720c1b5 100644
--- a/lib/message.cc
+++ b/lib/message.cc
@@ -462,9 +462,9 @@ notmuch_message_get_thread_id (notmuch_message_t *message)
void
_notmuch_message_add_reply (notmuch_message_t *message,
- notmuch_message_node_t *reply)
+ notmuch_message_t *reply)
{
- _notmuch_message_list_append (message->replies, reply);
+ _notmuch_message_list_add_message (message->replies, reply);
}
notmuch_messages_t *