commit f7b3b38fec3c46398162c4993d8b69c5477eb46f
parent 5977aecf6bf51a1f7a2bb59d01742dd4ced979ce
Author: William Morgan <wmorgan-sup@masanjin.net>
Date: Sat, 2 Feb 2008 20:16:19 -0800
ThreadIndexMode: handle deleted updates correctly
Diffstat:
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git 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