From 874d3c9babf25c9c291b14979955dd04767195a8 Mon Sep 17 00:00:00 2001 From: William Morgan Date: Sat, 2 Feb 2008 20:18:48 -0800 Subject: [PATCH] ThreadIndexMode: handle spam updates --- lib/sup/modes/thread-index-mode.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb index 0809d54..460de1f 100644 --- 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 -- 2.45.2