From: William Morgan Date: Sun, 3 Feb 2008 04:16:19 +0000 (-0800) Subject: ThreadIndexMode: handle deleted updates correctly X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=f7b3b38fec3c46398162c4993d8b69c5477eb46f;p=sup ThreadIndexMode: handle deleted updates correctly --- diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb index 0809d54..5985cae 100644 --- a/lib/sup/modes/thread-index-mode.rb +++ b/lib/sup/modes/thread-index-mode.rb @@ -166,10 +166,9 @@ EOS end def handle_deleted_update sender, m - @ts_mutex.synchronize do - return unless @ts.contains? m - @ts.remove_thread_containing_id m.id - end + t = @ts_mutex.synchronize { @ts.thread_for m } + return unless t + hide_thread t update end