From: William Morgan Date: Mon, 17 Mar 2008 16:26:28 +0000 (-0700) Subject: threading bugfix when threading by subject X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=48f08f21707b4cd6bffdc5379b9aa854194ed932;p=sup threading bugfix when threading by subject --- diff --git a/lib/sup/thread.rb b/lib/sup/thread.rb index f7fb39e..99f21dc 100644 --- a/lib/sup/thread.rb +++ b/lib/sup/thread.rb @@ -415,14 +415,8 @@ class ThreadSet ## that we first added a child message with a different ## subject) if root.thread - unless @threads[key] == root.thread - if @threads[key] - root.thread.empty! - @threads[key] << root - root.thread = @threads[key] - else - @threads[key] = root.thread - end + if @threads.member?(key) && @threads[key] != root.thread + @threads.delete key end else thread = @threads[key]