commit 874d3c9babf25c9c291b14979955dd04767195a8
parent 5977aecf6bf51a1f7a2bb59d01742dd4ced979ce
Author: William Morgan <wmorgan-sup@masanjin.net>
Date: Sat, 2 Feb 2008 20:18:48 -0800
ThreadIndexMode: handle spam updates
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
@@ -173,6 +173,13 @@ EOS
update
end
+ def handle_spammed_update sender, m
+ t = @ts_mutex.synchronize { @ts.thread_for m }
+ return unless t
+ hide_thread t
+ update
+ end
+
def handle_undeleted_update sender, m
add_or_unhide m
end