lib/sup/thread.rb in sup-0.0.7 vs lib/sup/thread.rb in sup-0.0.8

- old
+ new

@@ -52,10 +52,10 @@ ## yields each message, its depth, and its parent. note that the ## message can be a Message object, or :fake_root, or nil. def each fake_root=false adj = 0 - root = @containers.find_all { |c| !Message.subj_is_reply?(c) }.argmin { |c| c.date } + root = @containers.find_all { |c| !Message.subj_is_reply?(c) }.argmin { |c| c.date || 0 } if root adj = 1 root.first_useful_descendant.each_with_stuff do |c, d, par| yield c.message, d, (par ? par.message : nil)