From 27a5f6ed7a0562ba1c5aeb2f79da352dc21770bf Mon Sep 17 00:00:00 2001 From: William Morgan Date: Sat, 29 Dec 2007 20:28:23 -0800 Subject: [PATCH] bugfix: properly choose root messages for threading by subject --- lib/sup/thread.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sup/thread.rb b/lib/sup/thread.rb index 4d92ad3..6519757 100644 --- a/lib/sup/thread.rb +++ b/lib/sup/thread.rb @@ -58,7 +58,7 @@ class Thread ## messages). def each fake_root=false adj = 0 - root = @containers.find_all { |c| !Message.subj_is_reply?(c) }.argmin { |c| c.date || 0 } + root = @containers.find_all { |c| c.message && !Message.subj_is_reply?(c.message.subj) }.argmin { |c| c.date } if root adj = 1 -- 2.45.2