]> git.cworth.org Git - sup/blobdiff - lib/sup/thread.rb
fix a thread merging bug introduced by refactoring in 59f8fc2
[sup] / lib / sup / thread.rb
index d395c3588f7274448dc86d2d784ee9021b29c3b0..3ff4e7f1a8b25a07fdd504edf4eb3057954156b2 100644 (file)
@@ -357,7 +357,7 @@ class ThreadSet
     return if threads.size < 2
 
     containers = threads.map do |t|
-      c = @messages.member?(c) ? @messages[t.first.id] : nil
+      c = @messages.member?(t.first.id) ? @messages[t.first.id] : nil
       raise "not in threadset: #{t.first.id}" unless c && c.message
       c
     end